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

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 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题