Pycharm venv环境下 pip安装模块失败
错误信息
报错如下:
(venv) F:\PythonWorkStation\OpenCV2-Test>pip install ish_parser
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Requirement already satisfied: ish_parser in f:\anaconda3\lib\site-packages (0.0.25)
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
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(“Can’t connect to HTTPS URL becaus
e the SSL module is not available.”)) - skipping
解决办法
修改venv文件夹下的 pyvenv.cfg配置文件
1 | home = F:\Anaconda3 |
原因是ish_parser被激活, 用过SSL执行pip, pip数据被加密传输.
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 旧影如梭!
评论
ValineLivere