启动iPython时出现了一个奇怪的错误。我正在运行Snow Leopard
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.
答案 0 :(得分:2)
似乎你的IPython版本已经过时,因为IPython不再使用ipythonrc
文件进行配置。你可能只应该upgrade it。
在此之前,您应该考虑将python installation升级到2.7,因为您使用的是2.6。
答案 1 :(得分:0)
找不到文件路径,因此您可以使用路径/Users/admin_mcadminson/.ipython/ipythonrc
手动创建文件以绕过检查。我还建议将ipython更新为长期解决方案。