尝试在 pypy 中安装库

Trying to install libraries in pypy

我知道 pypy 比 CPython 快,所以我想尝试一下,它实际上比 CPython 快得多,但是当我安装库时,它显示以下内容:

PS C:\Users\DELL\Desktop\telegram\python -work some-> pip install pillow
Requirement already satisfied: pillow in c:\users\dell\appdata\roaming\python\python39\site- 
packages (8.3.0)

但是当我尝试导入模块时 (pillow):

Traceback (most recent call last):
  File "c:/Users/DELL/Desktop/telegram/python -work some-/studying code 2.py", line 1, in 
 <module>
import pillow
ModuleNotFoundError: No module named 'pillow'

不存在!请帮忙!

pillow 是现已弃用的 Python 图像库 (PIL) 的最新分支。您需要 import PILfrom PIL import ... 才能使用它。 查看他们的 documentation 以了解更多信息!

您必须 运行 pip 与您要为其安装软件包的 Python 版本。在这种情况下,您需要 pypy3 -m pip install pillow 或类似的东西---运行 它与您接下来 运行 的脚本具有相同的解释器。在您粘贴的输出中,我们看到 Requirement already satisfied: pillow in c:\users\dell\appdata\roaming\python\python39\site-packages 这是 CPython 3.9 的路径,而不是 PyPy。