无法安装python adb M2Crypto E

2024-09-30 10:34:05 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图安装python adb。在

对于pip和legacy install,我得到了相同的错误。在

Writing C:\Users\ARAJO~1\AppData\Local\Temp\easy_install-q9rc0j_2\M2Crypto-

0.26.4\setup.cfg
Running M2Crypto-0.26.4\setup.py -q bdist_egg --dist-dir C:\Users\ARAJO~1\AppData\Local\Temp\easy_install-q9rc0j_2\M2Crypto-0.26.4\egg-dist-tmp-tf0svopa
_m2crypto_wrap.c
SWIG/_m2crypto_wrap.c(3550): warning C4068: unknown pragma
SWIG/_m2crypto_wrap.c(3551): warning C4068: unknown pragma
SWIG/_m2crypto_wrap.c(3554): fatal error C1083: Cannot open include file: 'openssl/err.h': No such file or directory
error: Setup script exited with error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2

编辑:

加密安装和配置后: 我犯了这个错误,这是什么原因?在

^{pr2}$

它和包裹有关吗?? 谢谢


Tags: installlocal错误easysetuperrorusersappdata
1条回答
网友
1楼 · 发布于 2024-09-30 10:34:05

您必须让OpenSSL包含文件和库,并且必须提示编译器它们在哪里。见https://cryptography.io/en/latest/installation/#building-cryptography-on-windows

例如:

C:\> \path\to\vcvarsall.bat x86_amd64
C:\> set LIB=C:\OpenSSL-win64\lib;%LIB%
C:\> set INCLUDE=C:\OpenSSL-win64\include;%INCLUDE%
C:\> pip install cryptography

相关问题 更多 >

    热门问题