尝试从提示中打开 jupyter notebook 时出现 Anaconda 最新版本错误

Anaconda latest version error while trying to open jupyter notebook from the prompt

我使用 Windows 中的控制面板卸载了旧版本的 Anaconda,今天安装了最新版本 (**Anaconda3-2020.07-Windows-x86_64**)。但是,当我输入

jupyter notebook

在anaconda提示符下,报如下错误

C:\Users\kaushikb\Anaconda3\lib\site-packages\setuptools\distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first. warnings.warn( Traceback (most recent call last): File "C:\Users\kaushikb\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in from notebook.notebookapp import main File "C:\Users\kaushikb\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 49, in from zmq.eventloop import ioloop File "C:\Users\kaushikb\Anaconda3\lib\site-packages\zmq\__init__.py", line 47, in from zmq import backend File "C:\Users\kaushikb\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 40, in reraise(*exc_info) File "C:\Users\kaushikb\Anaconda3\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Users\kaushikb\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 27, in _ns = select_backend(first) File "C:\Users\kaushikb\Anaconda3\lib\site-packages\zmq\backend\select.py", line 28, in select_backend mod = __import__(name, fromlist=public_api) File "C:\Users\kaushikb\Anaconda3\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in from . import (constants, error, message, context, ImportError: DLL load failed while importing error: The specified module could not be found.

这里已经讨论过这个问题了吗?如果这是一个重复的问题,请指出正确的线程。如果没有——请帮我解决这个问题。我的 Windows 规格是:

---问候

同样的问题,但这对我有用:

step 1:在环境变量的PATH中添加YOUR_ANACONDA_ROOT/bin(我是C:\Users\tejkr\anaconda3\bin)

第 2 步: 以管理员身份打开 anaconda 提示符并运行 这些命令

pip3 安装 --upgrade pip

其次是

对于 Python 2: pip install --upgrade --force-reinstall --no-cache-dir jupyter --user

对于 Python 3: pip3 install --upgrade --force-reinstall --no-cache-dir jupyter --user

然后在 anaconda 提示符或激活的环境中执行 jupyter notebook