我正在遵循this指南。
当我使用它时。
sudo pip3 install -r /opt/odoo11/odoo/requirements.txt
我收到此错误:
例外:
回溯(最近通话最近一次):
文件“ /usr/lib/python3/dist-packages/pip/basecommand.py”,第122行,在主目录中 状态= self.run(选项,参数)
文件“ /usr/lib/python3/dist-packages/pip/commands/install.py”,第262行,正在运行 用于parse_requirements(文件名,finder = finder,options = options,session = session)中的请求:
文件“ /usr/lib/python3/dist-packages/pip/req.py”,行1632,在parse_requirements中 req = InstallRequirement.from_line(line,comes_from,prereleases = getattr(options,“ pre”,None))
文件“ /usr/lib/python3/dist-packages/pip/req.py”,第173行,位于from_line 返回cls(req,comesfrom,url = url,prereleases = prereleases)
init 中的文件“ /usr/lib/python3/dist-packages/pip/req.py”,第71行 req = pkg_resources.Requirement.parse(req)
文件“ /usr/lib/python3/dist-packages/pkg_resources.py”,第2667行,在解析中 reqs = list(parse_requirements(s))
parse_requirements中的文件“ /usr/lib/python3/dist-packages/pkg_resources.py”,第2605行 line,p,specs = scan_list(VERSION,LINE_END,line,p,(1,2),“版本说明”)
scan_list中的文件“ /usr/lib/python3/dist-packages/pkg_resources.py”,第2583行 “预期的','或列表结尾在“,line,” at“,line [p:]
ValueError :(“预期的','或列表结尾在“,” gevent == 1.1.2; sys_platform!='win32'和python_version <'3.7'“,'at',”; sys_platform! ='win32'和python_version <'3.7'“)
将失败的调试日志存储在/home/juanfro/.pip/pip.log
这是requirements.txt的内容:
Babel == 2.3.4
decorator == 4.0.10
docutils == 0.12
ebaysdk == 2.1.5
feedparser == 5.2.1
gevent == 1.1.2; sys_platform!='win32'和python_version <'3.7'
gevent == 1.3.4; sys_platform!='win32'和python_version> ='3.7'
greenlet == 0.4.10; python_version <'3.7'
greenlet == 0.4.13; python_version> ='3.7'
html2text == 2016.9.19
Jinja2 == 2.8.1
lxml == 3.7.1; sys_platform!='win32'和python_version <'3.7'
lxml == 4.2.3; sys_platform!='win32'和python_version> ='3.7'
lxml; sys_platform =='win32'
Mako == 1.0.4
MarkupSafe == 0.23
mock == 2.0.0
num2words == 0.5.4
ofxparse == 0.16
passlib == 1.6.5
枕头== 4.0.0
psutil == 4.3.1; sys_platform!='win32'
psycopg2 == 2.7.3.1; sys_platform!='win32'
pydot == 1.2.3
pyldap == 2.4.28; sys_platform!='win32'
pyparsing == 2.1.10
PyPDF2 == 1.26.0
pyserial == 3.1.1
python-dateutil == 2.5.3
pytz == 2016.7
pyusb == 1.0.0
PyYAML == 3.12; python_version <'3.7'
PyYAML == 3.13; python_version> ='3.7'
qrcode == 5.3
reportlab == 3.3.0
requests == 2.11.1
suds-jurko == 0.6
vatnumber == 1.2
vobject == 0.9.3
Werkzeug == 0.11.15
XlsxWriter == 0.9.3
xlwt == 1.3。*
xlrd == 1.0.0
pypiwin32; sys_platform =='win32'
我的猜测是,拥有多个gevent
版本会使事情变得混乱,或者最后需要某种分隔符,但我真的不知道错误是什么或如何解决它。 / p>
我发现了类似的问题,答案是使用:python -m pip install -U setuptools
,但这对我不起作用。
答案 0 :(得分:0)
有多种安装odoo 11的方法
根据odoo文档,您只需要输入以下内容即可:
wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
echo "deb http://nightly.odoo.com/11.0/nightly/deb/ ./" >> /etc/apt/sources.list.d/odoo.list
apt-get update && apt-get install odoo
这对于初学者来说很难。但是您可以使用由Yenthe666创建的脚本