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 中的
基础教程推荐
- 尝试制作WhatsApp机器人 2022-01-01
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
- 将 x 轴刻度更改为自定义字符串 2022-01-01
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
- Discord.py 缺少必需的参数 2022-01-01
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
