在Spyder中运行python脚本时出错

时间:2015-11-30 09:45:33

标签: python anaconda spyder

我在Windows 7中安装了Anaconda(Python 2.7)。最初,启动spyder有点问题,但最终我发现通过以管理员身份运行cmd,spyder启动了。当我在Spyder中运行我的第一个python脚本时,它在内部控制台中显示错误:

 F:\PythonIDE\lib\site-packages\nbformat\current.py:19: UserWarning: nbformat.current is deprecated.

- use nbformat for read/write/validate public API
- use nbformat.vX directly to composing notebooks of a particular version

  """)
F:\PythonIDE\lib\pkgutil.py:110: FutureWarning: The pandas.rpy module is deprecated and will be removed in a future version. We refer to external packages like rpy2. 
See here for a guide on how to port your code to rpy2: http://pandas.pydata.org/pandas-docs/stable/r_interface.html
  __import__(name)
F:\PythonIDE\lib\site-packages\matplotlib\cbook.py:137: MatplotlibDeprecationWarning: The matplotlib.delaunay module was deprecated in version 1.4. Use matplotlib.tri.Triangulation instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)
F:\PythonIDE\lib\site-packages\skimage\filter\__init__.py:6: skimage_deprecation: The `skimage.filter` module has been renamed to `skimage.filters`.  This placeholder module will be removed in v0.13.
  warn(skimage_deprecation('The `skimage.filter` module has been renamed '
Failed to write user configuration file.
Please submit a bug report.
Traceback (most recent call last):
  File "F:\PythonIDE\lib\site-packages\spyderlib\plugins\editor.py", line 2066, in run_file
    dialog.setup(fname)
  File "F:\PythonIDE\lib\site-packages\spyderlib\plugins\runconfig.py", line 349, in setup
    self.runconfigoptions = RunConfigOptions(self)
  File "F:\PythonIDE\lib\site-packages\spyderlib\plugins\runconfig.py", line 148, in __init__
    self.runconf = RunConfiguration()
  File "F:\PythonIDE\lib\site-packages\spyderlib\plugins\runconfig.py", line 57, in __init__
    self.set(CONF.get('run', 'defaultconfiguration', default={}))
  File "F:\PythonIDE\lib\site-packages\spyderlib\userconfig.py", line 387, in get
    self.set(section, option, default)
  File "F:\PythonIDE\lib\site-packages\spyderlib\userconfig.py", line 446, in set
    self._save()
  File "F:\PythonIDE\lib\site-packages\spyderlib\userconfig.py", line 136, in _save
    raise(e)
WindowsError: [Error 5] Access is denied: u'C:\\Users\\Shubhanshu\\.spyder2\\spyder.ini'

现在,如何纠正这个错误?我真的很感谢这方面的任何帮助。

0 个答案:

没有答案