折断的指针 2019-12-29 15:24 采纳率: 0%
浏览 1141
已采纳

pip / conda install 报 SSLError

我想安装 pycurl 库一直报ssl的错

安装其他库也报这个错 我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."))'))
  • 写回答

3条回答 默认 最新

  • weixin_42062762 2019-12-29 18:29
    关注

    你这个文件夹里面别的库能够import出来,那就和环境变量没关系,你应该考虑版本冲突,你是拿anacoda安装的它不是自带了吗,为什么我的直接有,
    还有不行把这个版本卸了。 去下个wheel文件的安装 pycurl-7.43.1-cp37-cp37m-win_amd64.whl。网址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#genshi。命令也是 pip install 把这个文件拖到命令去 回车

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 Web.config连不上数据库
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
  • ¥15 怎么配置广告联盟瀑布流
  • ¥15 Rstudio 保存代码闪退
  • ¥20 win系统的PYQT程序生成的数据如何放入云服务器阿里云window版?
  • ¥50 invest生境质量模块
  • ¥15 nhanes加权logistic回归,svyglm函数