【发布时间】:2011-05-27 21:06:30
【问题描述】:
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python:无法打开文件'selftest.py':[Errno 2]没有这样的文件或目录
当我执行 which python 时,我得到 /opt/local/bin/python
所以 selftest.py 找错了地方,但我该如何解决这个问题?
python manage.py shell 和所有其他 django 命令都可以工作。
我在安装 PIL 后运行这个 selftest.py
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform darwin 2.6.5 (r265:79063, Aug 8 2010, 21:45:26)
[GCC 4.2.1 (Apple Inc. build 5659)]
--------------------------------------------------------------------
--- TKINTER support available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS support not available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.
To check the build, run the selftest.py script.
running build_scripts
creating build/scripts-2.6
copying and adjusting Scripts/pilconvert.py -> build/scripts-2.6
copying and adjusting Scripts/pildriver.py -> build/scripts-2.6
copying and adjusting Scripts/pilfile.py -> build/scripts-2.6
copying Scripts/pilfont.py -> build/scripts-2.6
copying and adjusting Scripts/pilprint.py -> build/scripts-2.6
changing mode of build/scripts-2.6/pilconvert.py from 644 to 755
changing mode of build/scripts-2.6/pildriver.py from 644 to 755
changing mode of build/scripts-2.6/pilfile.py from 644 to 755
changing mode of build/scripts-2.6/pilfont.py from 644 to 755
changing mode of build/scripts-2.6/pilprint.py from 644 to 755
【问题讨论】:
标签: python django macos python-imaging-library