jupyter notebook切换conda环境时相关报错

jupyter 切换conda 环境时候出现报找不到DLL模块的错误:

当在网上搜索了很多方法仍然不能解决jupyter notebook切换conda环境报错问题。 总结网上解决方法
  1. 添加conda环境变量
  2. 更新zmq包

如果以上两种办法都不能解决,conda环境还可以自己再配置,可以选择最后暴力的办法,彻底卸载,重装,而且conda包最好在官网下载。

我就是属于搞了很久解决不了,原因是我把conda配置弄乱了,所以我选择暴力解决,清除配置,彻底卸载,重新安装conda

彻底清除配置指令

anaconda-clean --yes

conda下载链接,这是下载个人版本

https://www.anaconda.com/products/individual

问题描述:

Traceback (most recent call last):

File "C:\ProgramData\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in

from notebook.notebookapp import main

File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 47, in

from zmq.eventloop import ioloop

File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\__init__.py", line 47, in

from zmq import backend

File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 40, in

reraise(*exc_info)

File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise

raise value

File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 27, in

_ns = select_backend(first)

File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\backend\select.py", line 27, in select_backend

mod = __import__(name, fromlist=public_api)

File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in

from . import (constants, error, message, context,

ImportError: DLL load failed: 找不到指定的模块。


你可能感兴趣的:(日常bug,pytorch,python,tensorflow)