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

前端 未结 30 3333
遇见更好的自我
遇见更好的自我 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:49

    Encountered this issue while installing python 3.8 from source on ubuntu. The steps needed to install it successfully alongside the default python 3.7 are summarised below :

    sudo apt -y install libssl-dev zlib1g-dev build-essential
    
    wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
    tar -xf Python-3.8.0.tgz
    cd Python-3.8.0/
    
    ./configure --enable-optimizations
    make
    sudo make altinstall
    

    The install instruction for zlib1g-dev and build-essential is redundant, as ubuntu desktop already has these, but was necessary for some of Amazon's EC2 instances. python 3.8.0 is the current release just now, but should be replaced with the latest available.

    These instructions are best for keeping python 3.7 as the default for python3, and running python 3.8 in a virtual environment.

提交回复
热议问题