Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
281 views
in Technique[技术] by (71.8m points)

python - can't install. pip install -r requirements.txt

The error message when running pip install -r requirements.txt:

ERROR: Command errored out with exit status 1: 'e:django-pos-mastervenvscriptspython.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Use
rs\asada\AppData\Local\Temp\pip-install-82_9dan8\pillow_f761b25e426a43f6891c453cc664459a\setup.py'"'"'; __file__='"'"'C:\Users\asada\AppData\Local\Te
mp\pip-install-82_9dan8\pillow_f761b25e426a43f6891c453cc664459a\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
r
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersasadaAppDataLocalTemppip-record-lt_0q0siinstall-
record.txt' --single-version-externally-managed --compile --install-headers 'e:django-pos-mastervenvincludesitepython3.9Pillow' Check the logs for full com
mand output.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The Pillow version is not compatible with Python 3.9, try with Pillow~=8.0:

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...