又报了这个错,Could not find a version that satisfies the requirement PIL (from versions: none)
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at '/usr/local/bin/python3.7'.

终端安装:
pip3 install PIL 报错:ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)
ERROR: No matching distribution found for PIL
pip3 install Pillow
提示WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x10a463ed0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/pillow/
用国内镜像下载:pip3 install --index https://pypi.mirrors.ustc.edu.cn/simple/ gevent==1.4.0
是时候把本地pip指向python3.7了
默认使用Python3后,再pip install Pillow 成功了
在尝试通过pip3安装PIL时遇到了找不到匹配版本的错误。经过尝试,发现是Python解释器版本与pip不匹配,以及网络连接超时导致的。最终通过切换到Python3.7的pip并使用国内镜像成功安装了Pillow库。
1103

被折叠的 条评论
为什么被折叠?



