mac的pip遇到问题

Mac 10.8 pip install 遇到问题

Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/mysql-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-rjrQY3-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/mysql-python

Storing debug log for failure in /Users/haokuan/Library/Logs/pip.log

解决:

export CFLAGS=-Qunused-arguments

export CPPFLAGS=-Qunused-arguments

sudo -E pip install XXXX

猜你喜欢

转载自834945712.iteye.com/blog/2151685