تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3360 أدوات العرض

Hello Odoo community:

   I was trying to install a third-party module to odoo 16, but it shows that " Unable to install module xxx because an external dependency is not met: Python library not installed: Crypto"

  I have installed the required file using anaconda successfully (anaconda/win-64::pycryptodome-3.15.0-py39h2bbff1b_0) under python 3.9.17 environment, but my odoo is runing under python 3.11 environment, I therefore try to install with cmd. However, I cannot install using "pip install pycrypto", with the following error message: 

"C:\Program Files\Odoo 16\python\Scripts>pip install pycrypto

Collecting pycrypto

Using cached pycrypto\-2\.6\.1\.tar\.gz\ \(446\ kB\)

\ \ Installing\ build\ dependencies\ \.\.\.\ done

\ \ Getting\ requirements\ to\ build\ wheel\ \.\.\.\ done

\ \ Preparing\ metadata\ \(pyproject\.toml\)\ \.\.\.\ done

Building\ wheels\ for\ collected\ packages:\ pycrypto

\ \ Building\ wheel\ for\ pycrypto\ \(pyproject\.toml\)\ \.\.\.\ error

\ \ error:\ subprocess\-exited\-with\-error

×\ Building\ wheel\ for\ pycrypto\ \(pyproject\.toml\)\ did\ not\ run\ successfully\.

\ \ │\ exit\ code:\ 1

\ \ ╰─>\ \[2\ lines\ of\ output\]

\ \ \ \ \ \ warning:\ GMP\ or\ MPIR\ library\ not\ found;\ Not\ building\ Crypto\.PublicKey\._fastmath\.

\ \ \ \ \ \ error:\ Microsoft\ Visual\ C\+\+\ 14\.0\ or\ greater\ is\ required\.\ Get\ it\ with\ "Microsoft\ C\+\+\ Build\ Tools":\ https://visualstudio.microsoft.com/visual-cpp-build-tools/

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

ERROR: Failed building wheel for pycrypto

Failed to build pycrypto

ERROR: Could not build wheels for pycrypto, which is required to install pyproject.toml-based projects"

I have made sure that the "Microsoft C++ Build Tools" is in my system. 

Please let me know what else I can do to fix the error. Thank you so much!

الصورة الرمزية
إهمال
أفضل إجابة

Hi, 

As per the above error, you have to install visual c++ 14.0 or any higher version. please check the version of Visual C++ you installed.

after that, you can install pycrypto with the following command,

pip install pycrypto

          OR

pip install pycryptodome

Thanks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
Delete dependencies تم الحل
2
أبريل 22
3841
0
يوليو 20
6343
5
أكتوبر 17
3416
3
سبتمبر 23
11613
2
سبتمبر 21
5302