pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available

前端 未结 30 3317
遇见更好的自我
遇见更好的自我 2020-11-22 11:09

I am using Python3.6, when I try to install \"modules\" using pip3, I am facing the below mentioned issue \"pip is configured with locations that require TLS/SS

30条回答
  •  温柔的废话
    2020-11-22 11:50

    You could try brew link and it will show you the proper instruction:

    $ brew link openssl --force
    Warning: Refusing to link macOS provided/shadowed software: openssl@1.1
    If you need to have openssl@1.1 first in your PATH run:
      echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc
    
    For compilers to find openssl@1.1 you may need to set:
      export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
      export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
    
    For pkg-config to find openssl@1.1 you may need to set:
      export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
    

提交回复
热议问题