首页 > 解决方案 > Spyder 5(独立)- 不启动

问题描述

Python编程中的新手并且完全使用Spyder IDE,我是否尝试在Windows 10 64上安装该软件但我无法启动它。

当启动画面显示“正在加载工具栏”时,它在启动时崩溃我试图通过终端使用以下命令启动软件:python -m spyder.app.start

但我收到以下错误:

Traceback (most recent call last):
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\spyder\app\mainwindow.py", line 2132, in create_window
    main.setup()
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\spyder\app\mainwindow.py", line 903, in setup
    plugin_instance = plugin_class(self, configuration=CONF)
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\spyder\plugins\preferences\plugin.py", line 58, in __init__
    super().__init__(parent, configuration)
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\spyder\api\plugins.py", line 838, in __init__
    container.setup()
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\spyder\plugins\preferences\widgets\container.py", line 107, in setup
    icon=self.create_icon('configure'),
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\spyder\api\widgets\mixins.py", line 587, in create_icon
    return ima.icon(name)
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\spyder\utils\icon_manager.py", line 375, in icon
    directory=self._resource['directory'])
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\qtawesome\__init__.py", line 201, in load_font
    return _instance().load_font(prefix, ttf_filename, charmap_filename, directory)
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\qtawesome\__init__.py", line 76, in _instance
    ('mdi', 'materialdesignicons-webfont.ttf',
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\qtawesome\iconic_font.py", line 214, in __init__
    self.load_font(*fargs)
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\qtawesome\iconic_font.py", line 270, in load_font
    os.path.join(directory, ttf_filename)))
qtawesome.iconic_font.FontError: Font at 'C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\qtawesome\fonts\fontawesome4.7-webfont.ttf' appears to be empty. If you are on Windows 10, please read https://support.microsoft.com/en-us/kb/3053676 to know how to prevent Windows from blocking the fonts that come with QtAwesome.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\spyder\app\start.py", line 244, in <module>
    main()
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\spyder\app\start.py", line 226, in main
    mainwindow.main(options, args)
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\spyder\app\mainwindow.py", line 2282, in main
    mainwindow = create_window(app, splash, options, args)
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\spyder\app\mainwindow.py", line 2134, in create_window
    if main.console is not None:
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\spyder\app\mainwindow.py", line 1156, in __getattr__
    return self.get_plugin(self._INTERNAL_PLUGINS_MAPPING[attr])
  File "C:\Users\anAnnoyingPerson\AppData\Local\Programs\Python\Python37\lib\site-packages\spyder\app\mainwindow.py", line 170, in get_plugin
    'Plugin "{}" not found!'.format(plugin_name))
spyder.api.exceptions.SpyderAPIError: Plugin "internal_console" not found!

我尝试重新安装 Spyder,升级链接的插件,通过 pip 进行管理、本地操作、通过 exe 安装程序(再次)尝试了该spyder --reset功能。那没起效。

我也尝试解决 qtawesome 问题,但是:

有人可以帮我找到解决方案吗?

谢谢你,祝你有美好的一天。

标签: pythonwindows-10idespyder

解决方案


非常感谢 Daniel Althviz。确实是挡住了鬼代的字体。

使用icon_theme = spyder 2inC:\Users\<your user>\.spyder-py3\config问题解决了。


推荐阅读