python-3.x 我想解决安装Odoo 15代码sudo pip 3 install -r requirements.txt的问题

jfgube3f  于 2023-08-08  发布在  Python
关注(0)|答案(1)|浏览(159)
raise Exception("Version mismatch: this is the 'cffi' package version %s, located in %r.  When we import the top-level '_cffi_backend' extension module, we get version %s, located in %r.  The two versions should be equal; check your installation." % (
      Exception: Version mismatch: this is the 'cffi' package version 1.15.1, located in '/tmp/pip-build-env-xgw_0l3c/overlay/local/lib/python3.10/dist-packages/cffi/api.py'.  When we import the top-level '_cffi_backend' extension module, we get version 1.15.0, located in '/usr/lib/python3/dist-packages/_cffi_backend.cpython-310-x86_64-linux-gnu.so'.  The two versions should be equal; check your installation.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

字符串
针对这个问题,我再次尝试安装Odoo,但是失败了

dluptydi

dluptydi1#

在这里解决了同样的错误。先用pip卸载:

pip3 uninstall cffi

字符串
使用apt-get安装后:

sudo apt-get install python3-cffi


在此之后,您可以继续:

pip3 install -r requirements.txt

相关问题