1

Windows 7 x64 で Python 2.7 を使用しています。virtualenv をインストールし、virtualenv のプロジェクトに Pinax をインストールしました。syncdb を実行しようとすると、PIL が必要であるというエラーが表示されます。PIL 1.1.7 for 2.7 をインストールしようとしましたが、正しくインストールされませんでした。syncdb を実行すると、次のエラーが表示されます。

Error: One or more models did not validate:
photologue.photo: "image": To use ImageFields, you need to install the Python Im
aging Library. Get it at http://www.pythonware.com/products/pil/ .
photologue.watermark: "image": To use ImageFields, you need to install the Pytho
n Imaging Library. Get it at http://www.pythonware.com/products/pil/ .
avatar.avatar: "avatar": To use ImageFields, you need to install the Python Imag
ing Library. Get it at http://www.pythonware.com/products/pil/ .
photos.image: "image": To use ImageFields, you need to install the Python Imagin
g Library. Get it at http://www.pythonware.com/products/pil/ .

私が理解しているように、これはx32だからです。そこで、 http: //www.lfd.uci.edu/~gohlke/pythonlibs/#pil から非公式の x64 バージョンをダウンロードして、インストールを試みました。Windows インストーラーは、Python を見つけることができないと述べているため、PIL をインストールできません。レジストリを確認したところ、python がありました。

私が道に迷ったので何か考えはありますか?

4

2 に答える 2

0

Windows で作業してからしばらく経ちましたが、64 ビット バージョンの Python をインストールする必要があるかもしれません。私は間違っているかもしれませんが、32 ビットの Python が 64 ビットのライブラリを実行できるとは思いません。表示されているエラー メッセージは、64 ビット PIL が 64 ビット Python を探していて、見つからないということだと思います。

于 2011-08-20T06:55:58.657 に答える
0

32 ビット Python を実行している限り、Win7x64 に 32 ビット PIL をインストールできます。

于 2013-05-07T18:49:50.620 に答える