annaconda中spyder没办法正常运行----安装教程

原因:新版官网annaconda版本过高,没办法实现兼容,出现闪退的情况

  • 官网下载annaconda

    官网地址:Anaconda | The World's Most Popular Data Science Platformannaconda中spyder没办法正常运行----安装教程_第1张图片

    点击适合电脑系统下载 ,注意本电脑适用于32位还是64位,下载与其相同的版本

找到文件下载位置打开双击后打开安装 annaconda中spyder没办法正常运行----安装教程_第2张图片annaconda中spyder没办法正常运行----安装教程_第3张图片

选择all users

annaconda中spyder没办法正常运行----安装教程_第4张图片

等待安装完成。

安装完成后,在开始界面找到新安装的文件包

annaconda中spyder没办法正常运行----安装教程_第5张图片打开spyder

若spyder出现闪退,或无法打开,则问题一般为版本太高,不匹配

解决方案:

1.打开Anaconda Prompt,输入spyder --new-instance

Anaconda Prompt 显示出错信息为:

link image0 hasn't been detected!
Bad file descriptor (bundled\zeromq\src\epoll.cpp:100)

2.在Anaconda Prompt中输入pip check

会出现几行字,有两行与spyder有关,其中一行显示:

spyder requires pyqt5, which is not installed

或者显示需要其他包,这时候按照下面的方法来安装

3.输入pip install pyqt5==5.12.3

(只输入pip install pyqt5,他会自动安装最新版本,有红字提醒,意思是spyder要求pyqt5的版本不能高于5.13。这时,输入pip uninstall pyqt5,把最新版本卸掉,再重新安装旧版本。旧版本可以选择,当选我选择的是5.12.3)

这时应该会提示还有一个包pyqtwebengine也要求版本要低于5.13,输入pip install pyqtwebengine==5.12.1

4.输入spyder --new-instance,尝试再次启动spyder。

这一次,spyder依然会闪退,但报错信息只剩下一行:

Bad file descriptor (bundled\zeromq\src\epoll.cpp:100)

5. 输入pip uninstall pyzmq

卸载pyzmq。

原因:版本过高,不匹配。可以输入pip show pyzmq 查看当前版本

6.输入pip install pyzmq==19.0.2安装旧版本

7. 再次输入spyder --new-instance

8.打开spyder,成功打开。

 

 

 

 

 

你可能感兴趣的:(python)