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

时间:2016-09-02 23:37:32

标签: python macos ssl python-requests pyopenssl

Requests, Mechanize, urllib fails but cURL works中描述的问题似乎很可能就是我遇到的问题。 我尝试执行Requests, Mechanize, urllib fails but cURL works中描述的解决方案,但是我失败了

 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

0 个答案:

没有答案