简体   繁体   English

Python 在尝试打开 Spyder 或 Anaconda Navigator 时停止工作

[英]Python stops working while trying to open Spyder or Anaconda Navigator

I used to compile on Spyder at work, so I downloaded Anaconda 4.2 with Python 3.5 64bit for installing it on my own PC too.我以前在工作时在 Spyder 上编译,所以我下载了带有 Python 3.5 64 位的 Anaconda 4.2,以便将它也安装在我自己的 PC 上。

But it doesn't work!但它不起作用!

Every time I try to open spyder or a Notebook, or even the Anaconda Navigator, it crashes and an error message of "Python stop working" I tried to open spyder from command prompt too, to no avail.每次我尝试打开 spyder 或笔记本,甚至是 Anaconda Navigator 时,它都会崩溃并显示“Python 停止工作”的错误消息,我也尝试从命令提示符打开 spyder,但无济于事。

On the other hand, if I open a Python shell from Windows Command Prompt, it works.另一方面,如果我从 Windows 命令提示符打开 Python shell,它就可以工作。

Any ideas?有任何想法吗?

You should tell us the exact and complete error message that you got.您应该告诉我们您收到的准确且完整的错误消息。 But you should probably uninstall Anaconda and all its parts (including Python), delete the .anaconda and related sub-folders in your Users folder, then reinstall Anaconda.但是您可能应该卸载 Anaconda 及其所有部分(包括 Python),删除用户文件夹中的.anaconda和相关子文件夹,然后重新安装 Anaconda。 If that doesn't work, let us know.如果这不起作用,请告诉我们。 Don't skip deleting those sub-folders: I solved one of my problems by doing that.不要跳过删除这些子文件夹:我通过这样做解决了我的问题之一。

Check your firewall (try disabling it temporarily).检查您的防火墙(尝试暂时禁用它)。 That turned out to be the issue in my case (after trying to reinstall different versions of spyder/anaconda 20 times).事实证明,这就是我的问题(在尝试重新安装不同版本的 spyder/anaconda 20 次之后)。

Run the following command conda update --all on Ananconda Prompt to solve this issue.在 Ananconda Prompt 上运行以下命令conda update --all以解决此问题。 In my case, it ended up downgrading Spyder from 4.0.1 to 3.3.5 (2 versions behind).就我而言,它最终将 Spyder 从 4.0.1 降级到 3.3.5(落后 2 个版本)。 If the version does not matter much to you, this will fix the error.如果版本对您来说无关紧要,这将修复错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM