2010-12-19 5 views
0

/opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python:ファイルを開くことができません'selftest.py':[errnoを2]いいえそのようなファイルやディレクトリpython2.6を実行しているselftest.pyはこのエラーを返します

私はそうselftest.pyが間違って見ているの/ opt/local/binに/ pythonのに

を取得するPythonのかそのときどのように私はこれを修正するだろうか?

python manage.pyシェルと他のすべてのdjangoコマンドが機能します。

私はPIL

-------------------------------------------------------------------- 
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 

答えて

0

をインストールした後に、それはあなたが入力したとselftestの.pyファイルの内容を正確に何のように、より多くの情報なしで何が起こっているかを伝えるのは難しいです、このselftest.pyを実行していますよ。しかし、より重要な問題は、PILを最初からインストールするのはなぜですか?表示されているパス(/opt/local/)から、すでにMacPortsが使用されているようです。あなたが作業、(あなたは、最新のごMacPortsインストールを続ける場合は、1つ、)二つのコマンドでインストールされ、最新のPILを持つことができます。

$ sudo port selfupdate 
$ sudo port py26-pil 

またMacPortsからジャンゴをインストールすることができます。

$ sudo port py26-django 
関連する問題