Python シェルで正常に実行されるスクリプトがありますが、ダブルクリックすると PIL モジュールのインポートに失敗します (ただし、シェルでは PIL モジュールをインポートします)。
なにが問題ですか?別のシバンが必要ですか?私はWindows 7を使用しています:
#!/usr/bin/env python
"""
"""
try:
from PIL import Image
import os
import datetime
import time
except Exception, e:
raw_input(str(e))
# Running this script in the Shell, the code gets to here
# Running this script in real life (just double click it) it prints "no module PIL"