我已经安装了 pip 并获得了一个正常运行的虚拟环境(我认为)。我现在正在尝试安装 PIL。当我尝试安装它时,这是错误:
C:\Users\CharlesP>python -m pip install python-imaging
Downloading/unpacking python-imaging
Could not find any downloads that satisfy the requirement python-imaging
Cleaning up...
No distributions at all found for python-imaging
Storing debug log for failure in C:\Users\CharlesP\pip\pip.log
我不知道为什么会这样。我还安装了 pillow,它说它安装正确,但是当我尝试在 PyScripter 中使用 pillow 模块以获得最新版本时出现错误,它说没有这样的模块。
请您参考如下方法:
这可能有帮助:
pip install PIL --allow-external PIL --allow-unverified PIL
但是,您可以考虑改用 Pillow,这不会产生这些问题:
