報錯信息
pip3 install pymysql 時候報一下錯誤
Could not fetch URL https://pypi.python.org/simple/pillow/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/pillow/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping
Could not find a version that satisfies the requirement pillow (from versions: )
解決方案
pip3 install pymysql -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
這些安裝的數(shù)據(jù)包好幾個網(wǎng)站都有鏡像:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中國科技大學(xué) https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清華大學(xué) https://pypi.tuna.tsinghua.edu.cn/simple/
中國科學(xué)技術(shù)大學(xué) http://pypi.mirrors.ustc.edu.cn/simple/
使用方法很簡單惠昔,直接 -i 加 url 即可期揪!如下:
pip install web.py ``-``i http:``/``/``pypi.douban.com``/``simple
或者
pip install web.py -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
也可以把這些包源設(shè)置成默認(rèn)的京景,方法是修改pip.ini文件的配置:比如
[global]index-url = http://pypi.douban.com/simple[install]trusted-host=pypi.douban.com
--------------------- 本文來自 weay 的CSDN 博客 俩功,全文地址請點擊:https://blog.csdn.net/weay/article/details/82261442?utm_source=copy