Python 我安装了枕头,并试图使用从PIL导入图像,但它给出了一个错误

Python 我安装了枕头,并试图使用从PIL导入图像,但它给出了一个错误,python,import,pip,python-imaging-library,Python,Import,Pip,Python Imaging Library,我已经安装了枕头(7.2.0),但当我使用 从PIL导入ImageTk、Image、ImageDraw、ImageFont 它给了我这个错误:ModuleNotFoundError:没有名为'PIL'的模块 我能做什么?我确实安装了枕头。我试过卸载和安装枕头,但没有成功。我在windows上,让python 3.7使用以下命令获取最新版本的Pillow pip install wheel pip install Pillow 我在谷歌Colab上做过 pip install-Pillow==2

我已经安装了枕头(7.2.0),但当我使用

从PIL导入ImageTk、Image、ImageDraw、ImageFont

它给了我这个错误:
ModuleNotFoundError:没有名为'PIL'的模块


我能做什么?我确实安装了枕头。我试过卸载和安装枕头,但没有成功。我在windows上,让python 3.7使用以下命令获取最新版本的Pillow

pip install wheel
pip install Pillow
我在谷歌Colab上做过

pip install-Pillow==2.2.1当我尝试此操作时,“running setup.py install for Pillow”时命令出错,请使用
pip--version
检查pip版本。我认为您有python 2.7和python 3.7pip3安装Pillow==2.2.1我有pip版本20.2.3