Rom*_*cea 2 compiler-construction pip easy-install mysql-python
我似乎无法在10.9.1上安装mysql-python.我怀疑它与最新的命令行工具更新有关但我不是专家:
Running MySQL-python-1.2.5/setup.py -q bdist_egg --dist-dir /var/folders/s7/j138zlt172nf6qqpn98rhzhm0000gn/T/easy_install-kq86vo/MySQL-python-1.2.5/egg-dist-tmp-edndmM
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: Setup script exited with error: command 'cc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)
知道怎么克服这个吗?
pip也有同样的错误.
小智 6
我只是想改进你的答案,这也对我有所帮助:
在MacShell上执行以下操作:
sudo su
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
pip install MySQL-python
Run Code Online (Sandbox Code Playgroud)
否则将不使用这些选项.
干杯!
| 归档时间: |
|
| 查看次数: |
3046 次 |
| 最近记录: |