Spyder没有开始:ConfigParser.ParsingError

时间:2018-01-25 09:34:38

标签: python-2.7 spyder

我已安装Python(x,y)-2.7.10.0,无法启动spyder。我做了几次卸载和重新安装,但都是徒劳的。这就是它在运行' spyder --show-console'在cmd:

C:\WINDOWS\system32>spyder --show-console
Traceback (most recent call last):
  File "C:\Python27\Scripts\spyder-script.py", line 9, in <module>
    load_entry_point('spyder==2.3.5.2', 'console_scripts', 'spyder')()
  File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 558, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 2682, in load_entry_point
    return ep.load()
  File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 2355, in load
    return self.resolve()
  File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "C:\Python27\lib\site-packages\spyderlib\start_app.py", line 13, in <module>
    from spyderlib.config import CONF
  File "C:\Python27\lib\site-packages\spyderlib\config.py", line 718, in <module>
    subfolder=SUBFOLDER, backup=True, raw_mode=True)
  File "C:\Python27\lib\site-packages\spyderlib\userconfig.py", line 215, in __init__
    self.load_from_ini()
  File "C:\Python27\lib\site-packages\spyderlib\userconfig.py", line 260, in load_from_ini
    self.readfp(configfile)
  File "C:\Python27\lib\ConfigParser.py", line 324, in readfp
    self._read(fp, filename)
  File "C:\Python27\lib\ConfigParser.py", line 546, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors: C:\Users\Yamini\.spyder2\spyder.ini
        [line 19]: u'window/pref'

1 个答案:

答案 0 :(得分:0)

Spyder维护者在这里)几年前修复了这个错误。请卸载PythonXY(现在已经过时且无法维护)并安装最新版本的Anaconda以获得修复。