Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3417 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
Delete dependencies Đã xử lý
2
thg 4 22
3887
0
thg 7 20
6387
5
thg 10 17
3448
3
thg 9 23
11691
2
thg 9 21
5357