quot;pip is configured with locations that require TLS/SSL, however the ssl module in Python is not availablequot;(“pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用)
问题描述
我有 anaconda 包并运行 Spyder.这是我的系统信息:
anaconda 2018.12 py37_0Python 3.7.1点 18.1戴尔灵越 13 7000 64 位
我无法在命令提示符下使用 pip 安装任何东西.例如,我在尝试安装 numpy 时得到以下信息(我已经通过 anaconda 获得了):
pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用.已满足要求:c:usersuday rallabhandianaconda3libsite-packages 中的 numpy (1.15.4)pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用.无法获取 URL https://pypi.org/simple/pip/:确认 ssl 证书时出现问题:HTTPSConnectionPool(host='pypi.org', port=443):最大重试次数超出 url:/simple/pip/(由 SSLError 引起(无法连接到 HTTPS URL,因为 SSL 模块不可用."))- 跳过
请帮助我理解为什么会这样.
这是我在带有 Anaconda 的 Windows 10 上纠正错误的过程:
- 在我的环境变量中添加了以下路径:
- /AppData/Local/Continuum/Anaconda3
- /AppData/Local/Continuum/Anaconda3/Scripts
- /AppData/Local/Continuum/Anaconda3/Library
- /AppData/Local/Continuum/Anaconda3/Library/Bin
在这个阶段,错误信息仍然存在.
- 我从 Anaconda Prompt 安装了最新版本的 pip:<块引用>
python -m pip install --upgrade pip
这似乎纠正了 DLL 冲突.
I have the anaconda package and run Spyder. Here is my system information:
anaconda 2018.12 py37_0
Python 3.7.1
pip 18.1
Dell Inspiron 13 7000 64-bit
I am unable to install anything with pip from the command prompt. I get the following when trying to install numpy for instance (which I already have through anaconda):
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Requirement already satisfied: numpy in c:usersuday rallabhandianaconda3libsite-packages (1.15.4)
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
Please help me understand why this is happening.
Here was my process to correct the error, on Windows 10 with Anaconda:
- Added the following paths to my environment variables:
- /AppData/Local/Continuum/Anaconda3
- /AppData/Local/Continuum/Anaconda3/Scripts
- /AppData/Local/Continuum/Anaconda3/Library
- /AppData/Local/Continuum/Anaconda3/Library/Bin
At this stage, the error message was still there.
- From Anaconda Prompt, I installed the latest version of pip:
python -m pip install --upgrade pip
This appeared to correct the DLL conflict.
这篇关于“pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:“pip 配置了需要 TLS/SSL 的位置,但是 Python 中的


- 如何将一个类的函数分成多个文件? 2022-01-01
- 分析异常:路径不存在:dbfs:/databricks/python/lib/python3.7/site-packages/sampleFolder/data; 2022-01-01
- 如何在 Python 的元组列表中对每个元组中的第一个值求和? 2022-01-01
- 沿轴计算直方图 2022-01-01
- 如何在 python3 中将 OrderedDict 转换为常规字典 2022-01-01
- 使用Heroku上托管的Selenium登录Instagram时,找不到元素';用户名'; 2022-01-01
- python-m http.server 443--使用SSL? 2022-01-01
- python check_output 失败,退出状态为 1,但 Popen 适用于相同的命令 2022-01-01
- padding='same' 转换为 PyTorch padding=# 2022-01-01
- pytorch 中的自适应池是如何工作的? 2022-07-12