【发布时间】:2021-01-29 02:24:06
【问题描述】:
直到今天,我一直在 spyder 4 的 Anaconda2 中运行 python 2.7,没有任何问题。但是现在当我创建一个环境并在其中安装 python 2.7 和 spyder 时,我不断收到同样的错误:
回溯(最近一次通话最后一次):
文件“/home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages/spyder/app/mainwindow.py”,第 3718 行,在 main
主窗口 = run_spyder(应用程序,选项,参数)
文件“/home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages/spyder/app/mainwindow.py”,第 3557 行,在 run_spyder
main = MainWindow(选项)
init
中的文件“/home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages/spyder/app/mainwindow.py”,第 426 行 从 spyder.preferences.runconfig 导入 RunConfigPage
文件“/home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages/spyder/preferences /runconfig.py”,第 482 行,在
类 RunConfigPage(GeneralConfigPage):
文件“/home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages/spyder/preferences/runconfig.py”,第 487 行,在 RunConfigPage
ICON = ima.icon('run')
文件“/home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages/spyder/utils/icon_manager.py”,第 394 行,图标
目录=_resource['目录'])
文件“/home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages/qtawesome/init.py”,第 178 行,在 load_font
return _instance().load_font(前缀,ttf_filename,charmap_filename,目录) _instance
中的文件“/home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages/qtawesome/init.py”,第 54 行 'materialdesignicons-webfont-charmap.json')
init
中的文件“/home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages/qtawesome/iconic_font.py”,第 206 行 超级()。初始化()
TypeError: super() 至少需要 1 个参数(给定 0)
在我在环境中重新安装包“pydicom”后开始发生这种情况,现在没有任何效果。我已经重新安装了 anaconda2,使用了spyder --reset,以及所有其他常见的建议。
Spyder 3.3.6 在基础环境中工作,但每次我创建一个新环境并在其中安装 spyder 时,我都会遇到同样的错误。有什么建议吗?
【问题讨论】:
标签: python python-2.7 spyder