Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/357.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7.10“;“请求”;对于HTTPS失败和;致命错误:';openssl/ssl.h';“未找到文件”;_Python_Macos_Ssl_Python Requests_Pyopenssl - Fatal编程技术网

Python 2.7.10“;“请求”;对于HTTPS失败和;致命错误:';openssl/ssl.h';“未找到文件”;

Python 2.7.10“;“请求”;对于HTTPS失败和;致命错误:';openssl/ssl.h';“未找到文件”;,python,macos,ssl,python-requests,pyopenssl,Python,Macos,Ssl,Python Requests,Pyopenssl,中描述的问题很可能就是我所遇到的问题。 我尝试执行中描述的解决方案,但失败了 sudo -H pip install pyOpenSSL==0.13 ndg-httpsclient pyasn1 . . OpenSSL/crypto/x509.h:17:10: fatal error: 'openssl/ssl.h' file not found #include <openssl/ssl.h> ^ 1 error generated.

中描述的问题很可能就是我所遇到的问题。 我尝试执行中描述的解决方案,但失败了

 sudo -H pip install pyOpenSSL==0.13 ndg-httpsclient pyasn1
  .
  .
 OpenSSL/crypto/x509.h:17:10: fatal error: 'openssl/ssl.h' file not found
  #include <openssl/ssl.h>
           ^
  1 error generated.
  error: command 'cc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for pyOpenSSL
  Running setup.py clean for pyOpenSSL
Failed to build pyOpenSSL
sudo-H pip安装pyOpenSSL==0.13 ndg httpsclient pyasn1
.
.
OpenSSL/crypto/x509.h:17:10:致命错误:“未找到OpenSSL/ssl.h”文件
#包括
^
生成1个错误。
错误:命令“cc”失败,退出状态为1
----------------------------------------
为pyOpenSSL构建控制盘失败
为pyOpenSSL运行setup.py clean
未能生成pyOpenSSL

您缺少openssl头文件。你需要安装开发头文件。我该怎么做?好的,我知道了如何获取头文件。现在我遇到另一个错误:OpenSSL/crypto/crl.c:6:23:错误:“X509_reversed_dup”的静态声明遵循非静态声明Yes,因为您使用的是旧版本的OpenSSL。只需安装最新的,
sudo-H pip install pyOpenSSL
上述命令(实际上是--upgrade)从成功完成一些工作开始,但在安装收集的软件包时失败:setuptools、idna、ipaddress、enum34、cryptography、,pyOpenSSL找到现有安装:setuptools 1.1.6正在卸载setuptools-1.1.6:异常:回溯(最近一次调用):。“[Errno 1]不允许操作:'/tmp/pip-X9k0Cu-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/Python/_-markerlib'”)缺少openssl头文件。你需要安装开发头文件。我该怎么做?好的,我知道了如何获取头文件。现在我遇到另一个错误:OpenSSL/crypto/crl.c:6:23:错误:“X509_reversed_dup”的静态声明遵循非静态声明Yes,因为您使用的是旧版本的OpenSSL。只需安装最新的,
sudo-H pip install pyOpenSSL
上述命令(实际上是--upgrade)从成功完成一些工作开始,但在安装收集的软件包时失败:setuptools、idna、ipaddress、enum34、cryptography、,pyOpenSSL找到现有安装:setuptools 1.1.6正在卸载setuptools-1.1.6:异常:回溯(最近一次调用):。“[Errno 1]不允许操作:'/tmp/pip-X9k0Cu-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/Python/_-markerlib'”