ImportError: PILという名前のモジュールがありません 質問する

ImportError: PILという名前のモジュールがありません 質問する

PIL をインストールするには、シェルで次のコマンドを使用します。

easy_install PIL

次に、pythonこれを実行して入力します:import PILしかし、次のエラーが発生します:

Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: No module named PIL

今までそのような問題はなかったのですが、どう思いますか?

ベストアンサー1

シェルで以下を実行します:

pip install Pillow

注意: PILは非推奨です。後継者です。

おすすめ記事