背景
今天在公司安装了Anaconda,准备更换下Anaconda自带的jupyter notebook的主题,但是执行pip install
时报TLS/SSL错误。
安装环境
Win7 64位
Anaconda (Python 3.7),并已将D:\Anaconda3和D:\Anaconda3\Scripts添加到环境变量PATH中。
问题详情
执行以下命令报错:
pip install --upgrade jupyterthemes
错误描述:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting jupyterthemes
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/jupyterthemes/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status&#