You cant really use calibre code in external python interpreters, except on linux, if you install calibre system-wide. On windows, if you want to use calibre use calibre-debug as the python interpreter.
calibre-debug file.py
https://manual.calibre-ebook.com/dev...on-environment