错误如下:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__=’/private/tmp/pip-lW6HYm-build/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-UFtsH9-record/install-record.txt –single-version-externally-managed –compile" failed with error code 1 in /private/tmp/pip-lW6HYm-build/
解决办法如下:
pip install https://github.com/kivy/kivy/archive/master.zip –user
即在原来的命令后面加上"–user"