【发布时间】:2010-08-24 05:16:07
【问题描述】:
我最近听说了 python 中的配置文件,并很快发现了 sh 配置文件。我去调用它来尝试一下,在我的 Mac 上运行 Snow Leopard 和系统 Python2.6 时出现以下错误。其他人以前看过这个吗?我正在考虑尝试重新安装 IPython egg 以查看它是否修复了它,但我想我会问是否有其他用户看到过类似的东西(很可能是在 Apple 计算机上)。
mwoods 5 22:11:48 ~$ ipython -p sh
[IPythonApp] Config file not found, skipping: <ipython_config_sh.py>
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/ipython-0.11.bzr.r1205-py2.6.egg/IPython/core/application.py", line 223, in load_file_config
self.file_config = loader.load_config()
File "/Library/Python/2.6/site-packages/ipython-0.11.bzr.r1205-py2.6.egg/IPython/config/loader.py", line 227, in load_config
self._find_file()
File "/Library/Python/2.6/site-packages/ipython-0.11.bzr.r1205-py2.6.egg/IPython/config/loader.py", line 234, in _find_file
self.full_filename = filefind(self.filename, self.path)
File "/Library/Python/2.6/site-packages/ipython-0.11.bzr.r1205-py2.6.egg/IPython/utils/genutils.py", line 569, in filefind
(filename, path_dirs))
IOError: File does not exist in any of the search paths: 'ipython_config_sh.py', ('/Users/mwoods', u'/Users/mwoods/.ipython')
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
Type "copyright", "credits" or "license" for more information.
IPython 0.11.bzr.r1205 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]:
【问题讨论】:
-
我记得听说在 Mac 上运行的 Python 版本有点奇怪。您可能想查看一些差异,看看它们是否会影响您尝试做的事情。