Unable to install Python libraries

后端 未结 7 844
名媛妹妹
名媛妹妹 2020-11-27 22:53

I am not able to install any Python libraries. I am using pip 9.0.1 and python 2.7. I am getting the following error:

EN-NishantS:~         


        
相关标签:
7条回答
  • 2020-11-27 23:35

    I had a similar problem.

    The problem was in an old version of OpenSSL linked to the system Python installation.

    So I've uninstalled all Python distributions from the system and installed the last Python implementation with brew install python@2.

    You can check the OpenSSL version linked to Python like this:

    Python 2.7.14 (default, Mar 22 2018, 15:04:47)
    [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import ssl
    >>> ssl.OPENSSL_VERSION
    'OpenSSL 1.0.2o  27 Mar 2018'
    
    0 讨论(0)
提交回复
热议问题