错误信息

报错如下:
(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
2
3
home = F:\Anaconda3
include-system-site-packages = false # false修改为true
version = 3.7.6

原因是ish_parser被激活, 用过SSL执行pip, pip数据被加密传输.