使用Anaconda中的pip命令报错:pip is configured with locations that require TLS/SSL

在Win7环境下,使用Anaconda安装jupyterthemes时出现pip SSL模块不可用的错误。错误源于环境变量配置不完整,通过将Anaconda安装目录的Libraryin加入PATH,成功解决了TLS/SSL问题并完成jupyterthemes的安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

背景

今天在公司安装了Anaconda,准备更换下Anaconda自带的jupyter notebook的主题,但是执行pip install时报TLS/SSL错误。

安装环境
Win7 64位
Anaconda (Python 3.7),并已将D:\Anaconda3和D:\Anaconda3\Scripts添加到环境变量PATH中。

问题详情
执行以下命令报错:

pip install --upgrade jupyterthemes

错误描述:

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting jupyterthemes
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)’: /simple/jupyterthemes/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(“Can’t connect to HTTPS URL because the

评论 52
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值