pip - 由于SSL错误,无法安装jupyter笔记本电脑

问题描述 投票:0回答:1

我已经在我的Windows 10系统上安装了Anaconda3,但由于某些原因,没有一个脚本似乎工作!

所以,为了安装jupyter笔记本我尝试用pip做如下:

python -m pip install jupyter notebook

但是我一直遇到以下错误:

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting jupyter
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/jupyter/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/jupyter/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/jupyter/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/jupyter/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/jupyter/
  Could not fetch URL https://pypi.org/simple/jupyter/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/jupyter/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement jupyter (from versions: )
No matching distribution found for jupyter

我已经尝试了StackOverflow上这篇文章中建议的所有内容:pip install fails with "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)" ......但无济于事。 :(

我也试过谷歌搜索错误,并提出了ZIP!

Pleaaaaaaaase帮助!!!

python-3.x pip jupyter-notebook
1个回答
0
投票

由于你已经有了anaconda,最好直接使用conda。运行conda install notebook。我还建议通过conda update pip更新pip。在运行任何activate命令之前,请确保conda conda环境。

© www.soinside.com 2019 - 2024. All rights reserved.