Odoo环境搭建之常见问题readme
环境及工具
Windows,PyCharm Community Edition,postgresql-13.0-1
启动odoo环境
python odoo-bin
如果你只是还是空壳,启动odoo之后,他将会给你开始报错告诉你缺失了哪些模块,下面的命令可以帮助你更好地继续安装:
pip install pypdf2python -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.compip install selectivesearch -i http://pypi.douban.com/simple --trusted-host pypi.douban.com --user
--ModuleNotFoundError: No module named "Crypto"--
pip uninstall cryptopip uninstall pycrypto
pip install pycryptodome
找到安装路径C:Users22154[account]AppDataRoamingPythonPython38site-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 requestspython -m pip install --user psycopg2
以上是 Odoo环境搭建之常见问题readme 的全部内容, 来源链接: utcz.com/z/537891.html