環境及工具
Windows,PyCharm Community Edition,postgresql-13.0-1
啟動odoo環境
python odoo-bin
如果你只是還是空殼,啟動odoo之后,他將會給你開始報錯告訴你缺失了哪些模塊,下面的命令可以幫助你更好地繼續安裝:
pip install pypdf2
python -m pip install --upgrade pip
pip install passlib --user
pip install babel
pip install lxml
pip install polib
pip install pywin32
python -m pip install --user psycopg2
python -m pip install werkzeug --user
pip install Werkzeug==0.11.15
pip install psutil --user
python -m pip install jinja2 --user
python -m pip install reportlab --user
python -m pip install html2text --user
python -m pip install docutils --user
python -m pip install Wkhtmltopdf --user
python -m pip install num2words --user
python -m pip install libsass --user
python -m pip install Crypto --user
python -m pip install wheel --user
常見問題
WARNING: Retrying (Retry(total=4, connect=None, read=None,redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/pypdf2/
WARNING: Retrying(Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443):Read timed out. (read timeout=15)")': /simple/pypdf2/
解決
pip install keras -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install selectivesearch -i http://pypi.douban.com/simple --trusted-host pypi.douban.com --user
--ModuleNotFoundError: No module named 'Crypto'--
pip uninstall crypto
pip uninstall pycrypto
pip install pycryptodome
找到安裝路徑C:\Users\22154[account]\AppData\Roaming\Python\Python38\site-packages(部分電腦的存盤可能會有些許差異), 將檔案夾crypto改成Crypto;繼續運行,就會看到新的報錯缺失模塊itsdangerous,利用pip install 安裝上即可
pip install itsdangerous --user
--無法安裝psycopg2-- Could not install packages due to an EnvironmentError: [WinError 5] 拒絕訪問--
python -m pip install --upgrade requests
python -m pip install --user psycopg2
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/204505.html
標籤:Python
