Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 11-01-2021, 07:22 AM   #1
phil7578
Junior Member
phil7578 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2021
Device: none
pip install for calibre

Team,

I reinstalled my Win10 system, Calibre 5.31.1, Python 3.9.4 and pip 21.3.1. All these are the last available versions.

I can't run my former python code where I use direct APIs like this:
Code:
from calibre.library import db
db = db(EPBDirNam).new_api
EC = db.all_book_ids()
J = set(EC)
because I'm unable to load the right Calibre package in the python environment. I've read the Calibre documentation, but didn't find examples where the right package is mentioned. Here is what I try with pip and the message I get:
Code:
E:\>python -m pip install calibre
ERROR: Could not find a version that satisfies the requirement calibre (from versions: none)
ERROR: No matching distribution found for calibre
What could be wrong? Many thanks in advance for your help.
phil7578 is offline   Reply With Quote
Old 11-01-2021, 07:51 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://manual.calibre-ebook.com/dev...-your-projects
kovidgoyal is offline   Reply With Quote
Advert
Old 11-01-2021, 08:37 AM   #3
phil7578
Junior Member
phil7578 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2021
Device: none
Dear,
Thanks for the quick reaction. If I understand well, I can't execute my code from a normal Python program, but I'll *have to* run it from calibre-debug, which have its own python interpreter? I made my developments 2 years ago, so I don't remember that...
Thx.
phil7578 is offline   Reply With Quote
Reply

Tags
api, package, pip, python


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pip install? jefgoi Development 3 08-24-2019 11:18 AM
Can't install Calibre patetc Calibre 6 02-06-2014 09:50 AM
New Calibre Install Sydney's Mom Calibre 1 03-25-2013 01:47 PM
How install Calibre & Calibre Library where I choose? akmatov Calibre 3 01-17-2011 08:36 PM
CALIBRE cn't install thanos1thanos Calibre 1 01-11-2011 10:53 AM


All times are GMT -4. The time now is 05:19 PM.


MobileRead.com is a privately owned, operated and funded community.