python - 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 问题,但是:
- 我无法安装 TTF 或 OFT 文件(收到消息“不是有效的字体文件”)
- 我试图在这里做解决方案:https ://docs.microsoft.com/en-US/troubleshoot/windows-client/shell-experience/feature-to-block-untrusted-fonts 。但即使在 Reg 中,Python 也没有在里面列出..
有人可以帮我找到解决方案吗?
谢谢你,祝你有美好的一天。
解决方案
非常感谢 Daniel Althviz。确实是挡住了鬼代的字体。
使用icon_theme = spyder 2
inC:\Users\<your user>\.spyder-py3\config
问题解决了。
推荐阅读
- ios - wkwebview 100%丢包预设
- php - 由于 ajax 导致“未选择文件”错误,我的文件输入字段不断重置
- php - 如何在 php 中的 mform 按钮上运行功能
- regression - 如何将回归线拟合到 seaborn 散点图中
- c++ - 使用 dll 源代码 C++ 调试 dll 文件
- javascript - 如何从 Javascript 向 Streamlit 发送数据?
- git - 将 GitRepo 名称打印到 vs 代码
- javascript - 每 5 秒填充一次 Ajax 数据,替换旧数据 jquery
- amazon-web-services - Docker Jenkins - AWS EC2 上没有剩余空间,出现 docker pull 错误
- google-bigquery - 最新 odbc 驱动程序的连接错误:set_err: state ('H') is not a 5 characters, using 'S1000' instead