在pycharm里面通过pip安装三方库,比如安装pyyaml库:pip install pyyaml
在安装时报错:
Requirement already satisfied: pyyaml in c:\users\edz\appdata\local\programs\python\python38-32\lib\site-packages (3.13)
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 u
rl: /simple/pip/ (Caused by SSLError(SSLError(1, ‘[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1108)’))) - skipping
原因:
电脑中打开了抓包工具
解决方案:
关闭抓包工具,再次安装即可