在 Python 3.10 上启动 Spyder IDE 时出错
Posted
技术标签:
【中文标题】在 Python 3.10 上启动 Spyder IDE 时出错【英文标题】:Error when starting Spyder IDE on Python 3.10 【发布时间】:2021-11-29 17:29:43 【问题描述】:我正在尝试在 MacBook Pro M1 上安装和运行 spyder IDE,但它不工作,这是我得到的错误:
MacBook-Pro ~ % spyder
Layer-backing can not be explicitly controlled on 10.14 when built against the 10.14 SDK
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/spyder", line 8, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/app/start.py", line 236, in main
mainwindow.main(options, args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/app/mainwindow.py", line 1992, in main
mainwindow = create_window(MainWindow, app, splash, options, args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/app/utils.py", line 281, in create_window
main.setup()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/app/mainwindow.py", line 875, in setup
PLUGIN_REGISTRY.register_plugin(self, PluginClass,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/api/plugin_registration/registry.py", line 274, in register_plugin
instance = self._instantiate_spyder5_plugin(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/api/plugin_registration/registry.py", line 152, in _instantiate_spyder5_plugin
plugin_instance = PluginClass(main_window, configuration=CONF)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/api/plugins/new_api.py", line 294, in __init__
self._container = container = self.CONTAINER_CLASS(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/plugins/tours/container.py", line 48, in __init__
self._tour_dialog = OpenTourDialog(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/plugins/tours/widgets.py", line 1074, in __init__
image = image.scaled(image_width, image_height, Qt.KeepAspectRatio,
TypeError: arguments did not match any overloaded call:
scaled(self, int, int, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = Qt.FastTransformation): argument 1 has unexpected type 'float'
scaled(self, QSize, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = Qt.FastTransformation): argument 1 has unexpected type 'float'
有人可以帮忙吗?
【问题讨论】:
【参考方案1】:(此处为 Spyder 维护者)此错误已在我们于 2021 年 11 月发布的 5.2.0 版本中修复。
【讨论】:
以上是关于在 Python 3.10 上启动 Spyder IDE 时出错的主要内容,如果未能解决你的问题,请参考以下文章
在 Windows 10 上 Pip 安装 Spyder(无法启动)
Spyder 开始为每个控制台启动单独的 Python 应用程序
Python spyder + tensorflow 交叉验证在 Windows 10 上冻结
由于 python.app 错误,conda 更新后无法启动 Spyder