Python 错误:为pyOpenSSL构建控制盘失败
我正在尝试执行Python 错误:为pyOpenSSL构建控制盘失败,python,linux,openssl,Python,Linux,Openssl,我正在尝试执行pip3安装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__='
pip3安装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
错误:命令出错,退出状态为1:
命令:/usr/bin/python3-u-c'import sys,setuptools,tokenize;sys.argv[0]=“”/tmp/pip-install-qv8con90/pyOpenSSL/setup.py“”__文件“'/tmp/pip-install-qv8con90/pyOpenSSL/setup.py''”;f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,“文件”“exec”))“bdist\uwheel-d/tmp/pip-wheel-v601xddp
cwd:/tmp/pip-install-qv8con90/pyOpenSSL/
完整输出(28行):
运转的车轮
运行构建
运行build\u py
创建构建
创建build/lib.linux-x86_64-3.8
创建build/lib.linux-x86_64-3.8/OpenSSL
正在复制OpenSSL/_uuinit_uuu.py->build/lib.linux-x86_64-3.8/OpenSSL
复制OpenSSL/tsafe.py->build/lib.linux-x86_64-3.8/OpenSSL
复制OpenSSL/version.py->build/lib.linux-x86_64-3.8/OpenSSL
创建build/lib.linux-x86_64-3.8/OpenSSL/test
正在复制OpenSSL/test/_init__.py->build/lib.linux-x86_64-3.8/OpenSSL/test
复制OpenSSL/test/util.py->build/lib.linux-x86_64-3.8/OpenSSL/test
复制OpenSSL/test/test_crypto.py->build/lib.linux-x86_64-3.8/OpenSSL/test
复制OpenSSL/test/test\u rand.py->build/lib.linux-x86\u 64-3.8/OpenSSL/test
复制OpenSSL/test/test\u ssl.py->build/lib.linux-x86\u 64-3.8/OpenSSL/test
运行build_ext
正在构建“OpenSSL.crypto”扩展
创建build/temp.linux-x86_64-3.8
创建build/temp.linux-x86_64-3.8/OpenSSL
创建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-obuild/temp.linux-x86_64-3.8/OpenSSL/crypto/crypto.o
在OpenSSL/crypto/crypto.h:30中包含的文件中,
来自OpenSSL/crypto/crypto.c:16:
OpenSSL/crypto/x509.h:17:10:致命错误:OpenSSL/ssl.h:没有这样的文件或目录
17 |#包括
| ^~~~~~~~~~~~~~~
编译终止。
错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为1
----------------------------------------
错误:为pyOpenSSL构建控制盘失败
问题似乎在于它所说的“为pyOpenSSL构建轮子失败了,但我已经(pip)重新安装的wheel,它说它已经存在。有人有什么想法吗?如果有任何帮助,我们将不胜感激这应该是安装失败的错误报告,否则您必须提取a并在此处提供。顺便说一句:查看您应用的标记的描述,在线搜索错误消息,并作为一个n这里是ew用户,请阅读。