为什么通过conda启动jupyter Notebook时出现python37.dll错误 [英] Why do I get a python37.dll error when starting jupyter notebook via conda

查看:248
本文介绍了为什么通过conda启动jupyter Notebook时出现python37.dll错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Windows的64位Anaconda3.7.我使用Anaconda Navigator来启动jupyter笔记本.笔记本打开了,但是当我尝试启动内核/笔记本时,出现以下错误:

I just installed Anaconda3.7, 64 bit for windows. I used Anaconda Navigator to launch jupyter notebook. The notebook opened, but when I try to launch a kernel/notebook I get the following error:

由于找不到python37.dll,因此无法继续执行代码.重新安装该程序可能会解决此问题.

The code execution cannot proceed because python37.dll was not found. Reinstalling the program may fix this problem.

我什至尝试从命令提示符和anaconda提示符启动jupyter,但是它不起作用.在这些情况下,jupyter尝试重新启动内核5次,但在没有成功后退出.

I even tried launching jupyter from the command prompt and the anaconda prompt but it doesn't work. In those cases, jupyter tries to restart the kernel 5 times and just quits after no success.

我在python.exe旁边的Anaconda3文件夹中有python37.dll文件,我尝试将python37添加到PATH,但没有任何帮助.

I have the python37.dll file inside the Anaconda3 folder next to the python.exe and I tried adding python37 to PATH, but nothing helps.

任何线索可能是什么问题?

推荐答案

我通过做两件事解决了这个问题:

I solved the issues by doing 2 things:

  1. 我卸载了Anaconda,并删除了所有与最近创建的conda,anaconda,jupyter和python有关的隐藏文件和文件夹.

  1. I uninstalled Anaconda and deleted all hidden files and folders that had to do with conda, anaconda, jupyter and python that were created recently.

我在安装时禁用了防病毒和防火墙(看来它们阻止了某些dll和Anaconda文件的正确安装).

I disabled the antivirus and firewall while installing (it appears that they were blocking some dll and Anaconda files from being installed correctly).

我重新安装了Anaconda

I reinstalled Anaconda

在安装anaconda之后,我在防火墙上也遇到了同样的问题.我尝试使用"conda env create -f"environment.yml"创建虚拟环境,但是直到禁用防火墙和防病毒软件,它才完成创建.

I had the same problem with the firewall after installing anaconda. I tried creating a virtual environment with "conda env create -f "environment.yml" but it never completed the creation until I disabled the firewall and antivirus.

我希望这对遇到类似问题的人有所帮助.

I hope this helps others with similar issues.

这篇关于为什么通过conda启动jupyter Notebook时出现python37.dll错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆