我有 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 上纠正错误的过程:
在这个阶段,错误信息仍然存在.
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:
At this stage, the error message was still there.
python -m pip install --upgrade pip
This appeared to correct the DLL conflict.
这篇关于“pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!