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

你可能感兴趣的:(mac,pip)