問題描述
我有 anaconda 包并運(yùn)行 Spyder.這是我的系統(tǒng)信息:
anaconda 2018.12 py37_0Python 3.7.1點(diǎn) 18.1戴爾靈越 13 7000 64 位
我無法在命令提示符下使用 pip 安裝任何東西.例如,我在嘗試安裝 numpy 時(shí)得到以下信息(我已經(jīng)通過 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/:確認(rèn) ssl 證書時(shí)出現(xiàn)問題:HTTPSConnectionPool(host='pypi.org', port=443):最大重試次數(shù)超出 url:/simple/pip/(由 SSLError 引起(無法連接到 HTTPS URL,因?yàn)?SSL 模塊不可用."))- 跳過
請(qǐng)幫助我理解為什么會(huì)這樣.
這是我在帶有 Anaconda 的 Windows 10 上糾正錯(cuò)誤的過程:
- 在我的環(huán)境變量中添加了以下路徑:
- /AppData/Local/Continuum/Anaconda3
- /AppData/Local/Continuum/Anaconda3/Scripts
- /AppData/Local/Continuum/Anaconda3/Library
- /AppData/Local/Continuum/Anaconda3/Library/Bin
在這個(gè)階段,錯(cuò)誤信息仍然存在.
- 我從 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.
這篇關(guān)于“pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模塊不可用"的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!