python - 尝试使用 pip 安装 PIL 时出错以及 pyscripter 错误

标签 python pip python-imaging-library pyscripter

我已经安装了 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,这不会产生此类问题:

link

关于python - 尝试使用 pip 安装 PIL 时出错以及 pyscripter 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26370577/

相关文章:

java - IceTea/JDK/JRE 的 PyLucene 错误

python - 无法在Python中创建新线程

python - 如何使用 PIL 将 PNG 图像写入字符串?

python - cx_Oracle pip 安装失败 : oci. h: 没有那个文件或目录

python - 如何改变python pyttsx3模块中的声音

python-3.x - 类型错误 : string argument expected, 得到 'bytes'

python - 使用 PIL 保存图像但图像无法打开

python - 如何将 PyS60 应用程序部署到 Ovi 商店?

python - 如何在条形图(Python)的条形图上方写文字?

python - 在没有 C++ 编译器的情况下安装 python 包