小编N1N*_*NG4的帖子

如何在 termux 上安装 Pillow?

我使用“Termux”已经有一段时间了,并想在其上安装“Pillow”。每当我尝试使用“pip”安装 Pillow 时,它都会显示以下错误。
起初我以为我需要升级 pip,但它没有帮助。我也清除了缓存,无济于事。

是否可以在“Termux”上安装“Pillow”?如果可能,请分享解决方案。

错误:

$ python3 -m pip install Pillow==7.2.0          Collecting Pillow==7.2.0                          Using cached Pillow-7.2.0.tar.gz (39.1 MB)    Using legacy setup.py install for Pillow, since package 'wheel' is not installed.               Installing collected packages: Pillow               Running setup.py install for Pillow ... error                                                   ERROR: Command errored out with exit status 1:                                                   command: /data/data/com.termux/files/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/data/data/com.termux/files/usr/tmp/pip-install-48geu0sg/Pillow/setup.py'"'"'; __file__='"'"'/data/data/com.termux/files/usr/tmp/pip-install-48geu0sg/Pillow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /data/data/com.termux/files/usr/tmp/pip-record-rstq_guv/install-record.txt --single-version-externally-managed --compile --install-headers /data/data/com.termux/files/usr/include/python3.8/Pillow                   cwd: /data/data/com.termux/files/usr/tmp/pip-install-48geu0sg/Pillow/                      Complete output (172 …
Run Code Online (Sandbox Code Playgroud)

python pip python-imaging-library termux

5
推荐指数
1
解决办法
4640
查看次数

标签 统计

pip ×1

python ×1

python-imaging-library ×1

termux ×1