콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3567 화면

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
4월 22
4041
0
7월 20
6656
5
10월 17
3611
3
9월 23
12177
2
9월 21
5631