pip install MySQL-python error in virtualenv on mac
2014-05-06 18:42
706 查看
virtualenv:
pip install MySQL-python
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
reason:
The Apple LLVM compiler in Xcode 5.1 treats unrecognized command-line options as errors. This issue has been seen when building both Python native extensions and Ruby Gems, where some invalid compiler
options are currently specified.
Projects using invalid compiler options will need to be changed to remove those options. To help ease that transition, the compiler will temporarily accept an option to downgrade the error to a warning:
-Wno-error=unused-command-line-argument-hard-error-in-future
Note: This option will not be supported in the future.
To workaround this issue, set the ARCHFLAGS environment variable to downgrade the error to a warning. For example, you can install a Python native extension with:
solution:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install MySQL-python
pip install MySQL-python
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
reason:
The Apple LLVM compiler in Xcode 5.1 treats unrecognized command-line options as errors. This issue has been seen when building both Python native extensions and Ruby Gems, where some invalid compiler
options are currently specified.
Projects using invalid compiler options will need to be changed to remove those options. To help ease that transition, the compiler will temporarily accept an option to downgrade the error to a warning:
-Wno-error=unused-command-line-argument-hard-error-in-future
Note: This option will not be supported in the future.
To workaround this issue, set the ARCHFLAGS environment variable to downgrade the error to a warning. For example, you can install a Python native extension with:
solution:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install MySQL-python
相关文章推荐
- pip install mysql-python fails with EnvironmentError: mysql_config not found
- CentOS7上 pip install MySQL-python 安装失败(error: command 'gcc' failed with exit status 1)的解决办法
- 【Python学习笔记】macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- 【Python错误】windows下使用pip/easy_install提示Fatal error in launcher: Unable to create process using...
- 【Python错误】windows下使用pip/easy_install提示Fatal error in launcher: Unable to create process using...
- python pip install 报错TypeError: unsupported operand type(s) for -=: 'Retry' and 'int' Command "python setup.py egg_info" failed with error code 1 in
- pip install MySQL-python error
- macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- ubuntu 安装mysql 错误Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lmPxC
- macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- mac python 安装mysql(pip install mysql-python)
- pip install mysql-python fails with EnvironmentError: mysql_config not found
- Ubuntu安装pip easy_install virtualenv mysql命令
- install python+twisted+mysqldb+django on mac
- Centos Install python3.5 And virtualenv
- pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
- python 2.6 pip install mysql-python 报错
- Install Deepdream(Caffe-python) on Mac OS X
- How can I install Easy_Install for Python 2.6.4 in Mac OSX 10.4.11【转】