Could not fetch URL https://pypi.org/simple/mysql-python/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443):解决方案
2018-08-04 11:12
941 查看
1.使用python2 安装MySQL-python库时,报错如下:
2.于是乎各种方法尝试,比较坑的一个方法就是 在安装的命令前面增加下面的代码:pip2 --trusted-host pypi.python.org install MySQL-python 尝试过没什么卵用
3.于是,继续尝试其他办法,下载去官方网站:https://bootstrap.pypa.io/ 下载get-pip.py文件
这个方法也是没什么卵用的。
5.尝试其他方法,下载最新的pip工具包, pip工具下载的地址: https://pypi.org/project/pip/9.0.1/#files
6.解压后,执行setup.py文件 前提是先去把python2的环境下面的python.exe改为python2.exe文件
然后再cmd下面输入:python2 setup.py isntall
出现下面的截图说明pip可以正常使用了!
7.这时候就可以使用pip2 这个命令安装任何包了。比如pip2 install xxxx
相关文章推荐
- python安装时出现Could not fetch URL https://pypi.python.org/simple/pool/: There was a problem confirming
- pip install requests 报错 Could not fetch URL https://pypi.python.org/simple/requests/: There was ..r
- There was a problem confirming the ssl certificate ……
- virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check
- Cannot fetch index base URL https://pypi.python.org/simple/
- .CondaHTTPError: HTTP Error: Could not find URL: https://pypi.python.org/pypi/win-64/
- ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.
- pip安装python包出现Cannot fetch index base URL http://pypi.python.org/simple/
- pip安装scrapy报错 ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org, port=443) Read time out
- pip安装python包出现Cannot fetch index base URL http://pypi.python.org/simple/
- ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.
- pip install Error - ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read
- pip install Error - ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read
- pip安装python包出现Cannot fetch index base URL http://pypi.python.org/simple/
- pip升级出错解决方法ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read ti med out.
- python安装报443,https; HTTPSConnectionPool(host='pypi.python.org', port=443):
- Python3下的ssl certificate:Can't connect to HTTPS URL because the SSL module is not available.问题解决
- pip安装python包出现Cannot fetch index base URL http://pypi.python.org/simple/
- pip install Error - ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read
- pip install Error - ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read