pip install require tls/ssl

允我心安 提交于 2019-12-06 20:23:55

问题


I have got a problem with install python on my OVH vps server kubuntu 14.04 desktop. What i need to do ?

 :~/Desktop# python get-pip.py
    pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
    Collecting pip
      Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
      Could not find a version that satisfies the requirement pip (from versions: )
    No matching distribution found for pip

回答1:


You should trying installing form your packages repos

sudo apt-get install python-pip



回答2:


Calling more attention to @Arduino_Sentinel 's comment

Sounds like you installed Python by running make, right ? In that case I'd recommend installing libssl-dev and rebuilding+reinstalling Python

On a fresh debian installation, I had installed Python 3.6 via

wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
tar xvf Python-3.6.3.tgz
cd Python-3.6.3
./configure
make
make altinstall

creating a virtualenv with virtualenv -p python3.6 env and subsequently trying to install anything with env/bin/pip would produce the errors from the question.

The comment quoted above solved the issue on my server.



来源:https://stackoverflow.com/questions/41098252/pip-install-require-tls-ssl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!