用宝塔搭建免费个人库calibre-web遇到的问题 ModuleNotFoundError: No module named ‘babel’ 依赖安装失败,需手动安装,首先find对应pip3 执行:pip3 install --target vendor -r requirements.txt ,安装完成后,启动python项目,浏览器配置登录http://192.168.9.157:8083/
解决方法
#1、查看文档https://github.com/janeczku/calibre-web,
Install dependencies by running pip3 install --target vendor -r requirements.txt (python3.x) or pip install --target vendor -r requirements.txt (python2.7).
Execute the command: python cps.py (or nohup python cps.py - recommended if you want to exit the terminal window)
2、在服务器上查找pip3
[root@192-157 calibre-web]# find / -name pip3
/root/.pyenv/versions/3.7.2/bin/pip3
/root/.pyenv/shims/pip3
/www/server/panel/pyenv/bin/pip3
/www/wwwroot/calibre-web/book_venv/bin/pip3
#安装依赖
/root/.pyenv/versions/3.7.2/bin/pip3 install --target vendor -r requirements.txt
宝塔启动项目
http://192.168.9.157:8083/