我不确定发生了什么变化,但与此帖子类似:
Jupyter notebook only works in base environment
Jupyter笔记本仅在激活基本环境时打开,即:
C:\Users\user\activate base
(base) C:\Users\user\jupyter notebook
这发生在powershell,cmd和cmder上。在默认的未指定环境中,出现此错误:
C:\Users\user>jupyter notebook
Traceback (most recent call last):
File "C:\Users\user\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "C:\Users\user\anaconda3\lib\site-packages\notebook\notebookapp.py", line 62, in <module>
from tornado import httpserver
File "C:\Users\user\anaconda3\lib\site-packages\tornado\httpserver.py", line 29, in <module>
import ssl
File "C:\Users\user\anaconda3\lib\ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed: The specified procedure could not be found.
在默认环境中,我可以调用pip
命令,但出现此错误。这似乎与我上面的第一个问题有关。
C:\Users\user>pip install
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