错误:pyOpenSSL的构建轮失败

时间:2020-11-04 18:01:18

标签: python linux openssl

我正在尝试做pip3 install sslstrip,但我收到此错误消息

ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qv8con90/pyOpenSSL/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qv8con90/pyOpenSSL/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-v601xddp
       cwd: /tmp/pip-install-qv8con90/pyOpenSSL/
  Complete output (28 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/OpenSSL
  copying OpenSSL/__init__.py -> build/lib.linux-x86_64-3.8/OpenSSL
  copying OpenSSL/tsafe.py -> build/lib.linux-x86_64-3.8/OpenSSL
  copying OpenSSL/version.py -> build/lib.linux-x86_64-3.8/OpenSSL
  creating build/lib.linux-x86_64-3.8/OpenSSL/test
  copying OpenSSL/test/__init__.py -> build/lib.linux-x86_64-3.8/OpenSSL/test
  copying OpenSSL/test/util.py -> build/lib.linux-x86_64-3.8/OpenSSL/test
  copying OpenSSL/test/test_crypto.py -> build/lib.linux-x86_64-3.8/OpenSSL/test
  copying OpenSSL/test/test_rand.py -> build/lib.linux-x86_64-3.8/OpenSSL/test
  copying OpenSSL/test/test_ssl.py -> build/lib.linux-x86_64-3.8/OpenSSL/test
  running build_ext
  building 'OpenSSL.crypto' extension
  creating build/temp.linux-x86_64-3.8
  creating build/temp.linux-x86_64-3.8/OpenSSL                                                                    
  creating build/temp.linux-x86_64-3.8/OpenSSL/crypto                                                             
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c OpenSSL/crypto/crypto.c -o build/temp.linux-x86_64-3.8/OpenSSL/crypto/crypto.o                                                                               
  In file included from OpenSSL/crypto/crypto.h:30,                                                               
                   from OpenSSL/crypto/crypto.c:16:                                                               
  OpenSSL/crypto/x509.h:17:10: fatal error: openssl/ssl.h: No such file or directory                              
     17 | #include <openssl/ssl.h>                                                                                
        |          ^~~~~~~~~~~~~~~                                                                                
  compilation terminated.                                                                                         
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1                                                 
  ----------------------------------------                                                                        
  ERROR: Failed building wheel for pyOpenSSL 

问题似乎出在哪里:“ pyOpenSSL的构建轮失败,但我已经(pip)重新安装了该轮,并说已经存在了。有人有任何想法吗?任何帮助将不胜感激

0 个答案:

没有答案