Spyder 在所有 Anaconda 环境中加载期间不断崩溃

直到今天我一直在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行,在主

mainwindow = run_spyder(app ,选项,args)

文件“/home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages/spyder/app/mainwindow.py”,第3557行,在run_spyder

main = MainWindow(选项)

文件“ /home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages/spyder/app/mainwindow.py”,第 426 行,在init

中从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 行,在 icon

目录=_resource['directory'] 中)

文件“/home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages /qtawesome/ init .py”,第 178 行,在 load_font

return _instance().load_font(prefix, ttf_filename, charmap_filename, directory) 文件“/home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages /qtawesome/ init .py”,第 54 行,在 _instance

'materialdesignicons-webfont-charmap.json' 中)

文件“/home/cmiprc/anaconda2/envs/test/lib/python2.7/site-packages/qtawesome/iconic_font。 py”,第 206 行,init

super() 中。init ()

TypeError: super() 至少需要 1 个参数(给定 0 个)


当我在环境中重新安装软件包“pydicom”后,这种情况开始发生,现在没有任何效果。我已经重新安装了 anaconda2,使用了spyder --reset以及所有其他常见建议。


Spyder 3.3.6 在基本环境中工作,但是每次我创建一个新环境并在其中安装spyder 时,都会遇到相同的错误。有什么建议么?



慕虎7371278
浏览 73回答 1
1回答

HUX布斯

要解决此问题,您需要在您的环境中安装 QtAwesome 0.7.3。为此,请使用以下命令:conda install qtawesome=0.7.3
打开App,查看更多内容
随时随地看视频慕课网APP