安装其他库也报这个错 我python 和 anacoda 卸载重装还是这样
网上查到说添加环境变量 添加了但还是不行
anacoda 安装文件夹是anacode (新建文件夹的时候打错了)
Python 3.7.6
windows 10 系统
大佬们知道什么原因吗?
错误文本:
pip install pycurl
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Requirement already satisfied: pycurl in d:\anacode\lib\site-packages (7.43.0.3)
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 because the SSL module is not available.")) - skipping
C:\Users\Enz>conda install scrapy
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
你这个文件夹里面别的库能够import出来,那就和环境变量没关系,你应该考虑版本冲突,你是拿anacoda安装的它不是自带了吗,为什么我的直接有,
还有不行把这个版本卸了。 去下个wheel文件的安装 pycurl-7.43.1-cp37-cp37m-win_amd64.whl。网址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#genshi。命令也是 pip install 把这个文件拖到命令去 回车
pip install pycurl http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
报错很明显,没有ssl模块,试试安装 openssl https://slproweb.com/products/Win32OpenSSL.html