出现 Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming

@[出现 Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming](pip安装其他)

在用python安装pylint时,出现以下情况:

Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(“bad handshake: SysCallError(104, ‘ECONNRESET’)”,),)) - skipping

解决方法:

sudo pip --trusted-host pypi.python.org install pylint
如果你安装的是其他包,把pylint改成你要安的包哦。
最后成功:
成功安装pylint

你可能感兴趣的:(Ubuntu)