问题描述
我有 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.