打开spyder时闪退

这篇具有很好参考价值的文章主要介绍了打开spyder时闪退。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

1.直接控制台,输入spyder run,看有什么报错提示

C:\Users\aa>spyder run
link image0 hasn't been detected!
D:\Soft\Anaconda3\lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
Bad file descriptor (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100)
[60816:67636:0214/221001.457:ERROR:broker_win.cc(59)] Error reading broker pipe: 管道已结束。 (0x6D)

2.找了一些大佬的解决方法,说 pip check

C:\Users\aa>pip check
spyder 5.2.2 requires pyqt5, which is not installed.
spyder 5.2.2 requires pyqtwebengine, which is not installed.
daal4py 2021.6.0 requires daal, which is not installed.
anaconda-project 0.11.1 requires ruamel-yaml, which is not installed.
conda-repo-cli 1.0.20 has requirement clyent==1.2.1, but you have clyent 1.2.2.
conda-repo-cli 1.0.20 has requirement nbformat==5.4.0, but you have nbformat 5.5.0.

 3.就安装了一下pyqt5、pyqtwebengine包,推荐安装老的版本

C:\Users\aa>pip install pyqt5==5.12.3 -i https://pypi.tuna.tsinghua.edu.cn/simple

C:\Users\aa>pip install pyqtwebengine==5.12.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

4.安装后再次运行,还是不可以

C:\Users\绾绾>spyder run
D:\Soft\Anaconda3\lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
Bad file descriptor (C:\ci\zeromq_1616055400030\work\src\epoll.cpp:100)

5.找了一些大佬的解决方法,说 重新安装旧版本的 pyzmq

C:\Users\aa>pip uninstall pyzmq
Found existing installation: pyzmq 23.2.0
Uninstalling pyzmq-23.2.0:
  Would remove:
    d:\soft\anaconda3\lib\site-packages\pyzmq-23.2.0.dist-info\*
    d:\soft\anaconda3\lib\site-packages\zmq\*
Proceed (Y/n)? y
  Successfully uninstalled pyzmq-23.2.0

C:\Users\aa>pip install pyzmq==19.0.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pyzmq==19.0.2
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b8/3d/3c10e21c485e7f4f668563a33aa770488b8ca37647e0dd2c64b37d52bd12/pyzmq-19.0.2-cp39-cp39-win_amd64.whl (695 kB)
     ---------------------------------------- 695.1/695.1 kB 3.1 MB/s eta 0:00:00
Installing collected packages: pyzmq
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spyder-kernels 2.2.1 requires pyzmq>=22.1.0; python_version >= "3", but you have pyzmq 19.0.2 which is incompatible.
jupyter-client 7.3.4 requires pyzmq>=23.0, but you have pyzmq 19.0.2 which is incompatible.
Successfully installed pyzmq-19.0.2

6.安装后再次运行,还是不可以

C:\Users\绾绾>spyder --new-instance
D:\Soft\Anaconda3\lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
Traceback (most recent call last):
  File "D:\Soft\Anaconda3\Scripts\spyder-script.py", line 10, in <module>
    sys.exit(main())
  File "D:\Soft\Anaconda3\lib\site-packages\spyder\app\start.py", line 251, in main
    mainwindow.main(options, args)
  File "D:\Soft\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 2016, in main
    mainwindow = create_window(MainWindow, app, splash, options, args)
  File "D:\Soft\Anaconda3\lib\site-packages\spyder\app\utils.py", line 300, in create_window
    main.post_visible_setup()
  File "D:\Soft\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 1169, in post_visible_setup
    plugin.on_mainwindow_visible()
  File "D:\Soft\Anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\plugin.py", line 376, in on_mainwindow_visible
    self.create_new_client(give_focus=False)
  File "D:\Soft\Anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\plugin.py", line 508, in create_new_client
    self.get_widget().create_new_client(
  File "D:\Soft\Anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\widgets\main_widget.py", line 1545, in create_new_client
    self.connect_client_to_kernel(client, is_cython=is_cython,
  File "D:\Soft\Anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\widgets\main_widget.py", line 1605, in connect_client_to_kernel
    kc.start_channels(shell=True, iopub=True)
  File "D:\Soft\Anaconda3\lib\site-packages\qtconsole\kernel_mixins.py", line 47, in start_channels
    super().start_channels(*args, **kw)
  File "D:\Soft\Anaconda3\lib\site-packages\jupyter_client\threaded.py", line 279, in start_channels
    self.shell_channel._inspect = self._check_kernel_info_reply
  File "D:\Soft\Anaconda3\lib\site-packages\jupyter_client\client.py", line 355, in shell_channel
    socket = self.connect_shell(identity=self.session.bsession)
  File "D:\Soft\Anaconda3\lib\site-packages\jupyter_client\connect.py", line 621, in connect_shell
    return self._create_connected_socket("shell", identity=identity)
  File "D:\Soft\Anaconda3\lib\site-packages\jupyter_client\connect.py", line 605, in _create_connected_socket
    sock = self.context.socket(socket_type)
  File "D:\Soft\Anaconda3\lib\site-packages\zmq\sugar\context.py", line 226, in socket
    s = self._socket_class(self, socket_type, **kwargs)
  File "D:\Soft\Anaconda3\lib\site-packages\zmq\_future.py", line 144, in __init__
    self._init_io_state()
  File "D:\Soft\Anaconda3\lib\site-packages\zmq\asyncio\__init__.py", line 53, in _init_io_state
    self.io_loop.add_reader(self._fd, lambda : self._handle_events(0, 0))
  File "D:\Soft\Anaconda3\lib\asyncio\events.py", line 504, in add_reader
    raise NotImplementedError
NotImplementedError
Exception ignored in: <function Socket.__del__ at 0x000001B4A3EC5EE0>
Traceback (most recent call last):
  File "D:\Soft\Anaconda3\lib\site-packages\zmq\sugar\socket.py", line 67, in __del__
    self.close()
  File "D:\Soft\Anaconda3\lib\site-packages\zmq\_future.py", line 160, in close
    self._clear_io_state()
  File "D:\Soft\Anaconda3\lib\site-packages\zmq\asyncio\__init__.py", line 60, in _clear_io_state
    self.io_loop.remove_reader(self._fd)
  File "D:\Soft\Anaconda3\lib\asyncio\events.py", line 507, in remove_reader
    raise NotImplementedError
NotImplementedError:

7.找了一些大佬的解决方法(点),说在anaconda安装目录\lib\site-packages\tornado\platform\asyncio.py开头添加代码:

import sys
 
if sys.platform == 'win32':
  asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

打开spyder时闪退,python,深度学习,开发语言

8. 然后再spyder --new-instance,就启动spyder成功了

 文章来源地址https://www.toymoban.com/news/detail-728791.html

到了这里,关于打开spyder时闪退的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Microsoft.ACE.OLEDB.12.0未注册,AccessDatabaseEngine安装时闪退可能的原因

    先剧透一下,安装机子的系统为windows10英文版64位。 今天,由于对方机子更换的原因,我们需要将所有内容重新装一遍,其中出现了一个问题,即在界面导入excel不成功,这个问题之前出现过,但是时间久了,我也有点忘记了,还好老师还记得,说是对方机子没有安装Microso

    2024年02月11日
    浏览(458)
  • Office安装时闪退,用Windows Installer Cleanup彻底卸载 或 注册表清理解决

    结论:如果遇到安装Office 时闪退或莫名其妙无法安装,是因为Office

    2024年02月04日
    浏览(50)
  • anaconda prompt进入虚拟环境 打开spyder

    目录 1.查看有多少虚拟环境  2.conda create 指令创建新的虚拟环境 3.进入虚拟环境 4.spyder进入虚拟环境 5.退出虚拟环境 6.删除虚拟环境 1.查看有多少虚拟环境  打开anaconda prompt,输入 2.conda create 指令创建新的虚拟环境 输入y 装好之后再用conda env list检查一遍 3.进入虚拟环境 4.

    2024年02月03日
    浏览(30)
  • python使用selenium 打开谷歌浏览器闪退, 怎么解决

    在使用 Selenium 操作 Chrome 浏览器时,如果 Chrome 浏览器闪退,则可能是以下几个方面出现了问题: 1. Chromedriver 版本与 Chrome 浏览器版本不匹配 你需要确保你正在使用的 Chromedriver 版本与你的 Chrome 浏览器版本匹配。你可以在 Chromedriver 官网上找到最新版本的 Chromedriver,并下载

    2024年02月11日
    浏览(31)
  • python使用selenium 打开谷歌浏览器闪退解决办法

    在使用 Selenium 操作 Chrome 浏览器时,如果 Chrome 浏览器闪退,则可能是以下几个方面出现了问题: 1. Chromedriver 版本与 Chrome 浏览器版本不匹配 你需要确保你正在使用的 Chromedriver 版本与你的 Chrome 浏览器版本匹配。你可以在 Chromedriver 官网上找到最新版本的 Chromedriver,并下载

    2024年02月08日
    浏览(35)
  • Eclipse闪退 打开eclipse闪退 打开eclipse图标一闪而过 eclipse闪退 eclipse打不开

    双击图标,窗口一闪而过,马上关闭了 进入Eclipse安装目录,运行终端启动eclipse 可以看到 启动提示异常 \\\"Error occurred during initialization of VM , 初始化Java虚拟机异常,这个异常一般都是 eclipse jdk环境问题 打开 eclipse.ini 查看有没有 jdk路径配置 我的配置文件打开,是没有jdk路径的

    2024年01月19日
    浏览(33)
  • C语言学习笔记 使用vscode外部console出现闪退-12

    在使用vscode的外部console时,会出现闪退现象,这是因为程序运行结束后,系统自动退出了终端(终端机制决定的)。我们可以在C程序结束后,使用system函数来暂停DOS终端系统,这样就可以完整地看到程序运行过程。 在程序上方添加stdlib.h头文件,然后在程序结束后调用syst

    2024年02月14日
    浏览(28)
  • 如何在PyCharm中开发Python keras深度学习模型?

    PyCharm是一款非常流行的Python集成开发环境(IDE),它支持Python开发的各种功能,包括数据分析、机器学习和深度学习等。 在本文中,我们将介绍如何在PyCharm中开发Python keras深度学习模型。 一、安装PyCharm 首先,需要在官网上下载并安装PyCharm。下载地址为: 根据自己的操作

    2024年02月02日
    浏览(46)
  • selenium打开chrome闪退

    原因: 1、网页驱动版本和chrome版本不一 查看浏览器版本: 版本只需看前三位110 打开网址:https://chromedriver.storage.googleapis.com/index.html下载对应的浏览器驱动. 配置环境变量  2、selenium版本过高 选用旧版本,这里推荐的4.1.2 在IDE终端输入:pip install selenium==4.1.2 目前就发现这两点

    2024年02月19日
    浏览(28)
  • Sourcetree 无法打开/闪退问题

    Sourcetree是一款Git的可视化图形管理界面,提供了Windows和Mac的免费Git客户端,很方便的管理项目的代码版本 win11,sourcTree版本:3.4.12.0 打开后如下:回到AppData目录 在AppData目录下会有SourceTree 回退到Local目录,找到Atlassian目录。 上图红色矩形框圈起来的部分为sourcetree的缓存信息,

    2024年02月07日
    浏览(37)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包