无法在Python 3.8虚拟环境中安装Pillow 6.2.1。
以下是安装过程中发生的错误。
Command "C:\Users\rajksri2\Documents\venv\rs\Scripts\python.exe -u -c
> Blockquote
"import setuptools, tokenize;
__file__='C:\\Users\\rajksri2\\AppData\\Local\\Temp\\pip-install-067_effw\\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 C:\Users\rajksri2\AppData\Local\Temp\pip-record-ceg_4pcf\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\rajksri2\Documents\venv\rs\include\site\python3.8\pillow"
failed with error code 1 in C:\Users\rajksri2\AppData\Local\Temp\pip-install-067_effw\pillow\
答案 0 :(得分:1)
要在Windows上安装枕头,
python -m pip install --upgrade pip
python -m pip install --upgrade Pillow
https://pillow.readthedocs.io/en/stable/installation.html#windows-installation