我在啓動iPython時遇到了一個奇怪的錯誤。我運行雪豹iPython啓動時拋出一個錯誤:「ipythonrc not found」
WARNING: Configuration file ipythonrc not found. Ignoring request.
------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/IPython/ConfigLoader.py", line 66, in load
fname = filefind(fname,incpath)
File "/Library/Python/2.6/site-packages/IPython/genutils.py", line 555, in filefind
' not found in current or supplied directories:' + `alt_dirs`
IOError: File'ipythonrc' not found in current or supplied directories:u'/Users/admin_mcadminson/.ipython'
WARNING: Problems loading configuration file 'ipythonrc'
Starting with default -bare bones- configuration.
這是下面的錯誤消息:
ImportError Traceback (most recent call last)
/Library/Python/2.6/site-packages/IPython/ipmaker.pyc in force_import(modname, force_reload)
61 reload(sys.modules[modname])
62 else:
---> 63 __import__(modname)
64
65
ImportError: No module named ipy_user_conf
WARNING: /Users/admin_mcadminson/.ipython/ipy_user_conf.py does not exist, please run %upgrade!
WARNING: Loading of ipy_user_conf failed.
這不是一個真正的錯誤;只是一個警告。你有'.ipythonrc'配置文件嗎?你可能不需要它,但如果你想創建一個,它看起來像你可以把它放在'/ Users/admin_mcadminson'中。 – bernie 2013-03-06 17:14:52
你運行的是什麼版本的ipython? – askewchan 2013-03-06 17:56:23
iPython-2.7,是的,這是一個警告,但它降級成一個錯誤。我上面發佈了以下錯誤消息。 – terra823 2013-03-06 18:04:30