我已经安装了 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,这不会产生此类问题:
关于python - 尝试使用 pip 安装 PIL 时出错以及 pyscripter 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26370577/