Skip to Content
Menu
This question has been flagged
1 Reply
2775 Views

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!

Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
2
Apr 22
3291
0
Jul 20
5706
5
Oct 17
3001
3
Sep 23
10231
2
Sep 21
4367