1、文件权限问题,在pip前添加sudo,有时候文件太大或者网络不好也会报类似的错
Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-0jtgof/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 /tmp/pip-gsjsjvcr-record/install-record.txt --single-version-externally-managed --compile --user --prefix=” failed with error code 1 in /tmp/pip-build-0jtgof/pillow/
2、找不到安装包重新在试一下可能是网不好,报错一般看第一行或者最后一行就好了
Can’t rollback pillow, nothing uninstalled.
Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-uo3ae5cm/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 /tmp/pip-dt2xx084-rec