GVKun编程网logo

clang 错误:未知参数:'-mno-fused-madd'(python 包安装失败)(未知错误code=0)

1

在这篇文章中,我们将为您详细介绍clang错误:未知参数:'-mno-fused-madd'的内容,并且讨论关于python包安装失败的相关问题。此外,我们还会涉及一些关于'easy_install-

在这篇文章中,我们将为您详细介绍clang 错误:未知参数:'-mno-fused-madd'的内容,并且讨论关于python 包安装失败的相关问题。此外,我们还会涉及一些关于'easy_install -U cython'无法抱怨vcvarsall.bat和-mno-cygwin、Android Fused LocationSettingsRequest从startResolutionForResult中删除“never”选项、arm-none-eabi-gcc.exe:错误:无法识别的命令行选项'-mno-fpu'、brew install php55 报错 clang: error的知识,以帮助您更全面地了解这个主题。

本文目录一览:

clang 错误:未知参数:'-mno-fused-madd'(python 包安装失败)(未知错误code=0)

clang 错误:未知参数:'-mno-fused-madd'(python 包安装失败)(未知错误code=0)

尝试psycopg2在 Mavericks 10.9 上通过 pip 安装时出现以下错误:

clang: error: unknown argument: ''-mno-fused-madd'' [-Wunused-command-line-argument-hard-error-in-future]

不知道如何继续,并已在此处和其他地方搜索此特定错误。任何帮助深表感谢!

这是 pip 的完整输出:

$ pip install psycopg2Downloading/unpacking psycopg2  Downloading psycopg2-2.5.2.tar.gz (685kB): 685kB downloaded  Running setup.py (path:/private/var/folders/0z/ljjwsjmn4v9_zwm81vhxj69m0000gn/T/pip_build_tino/psycopg2/setup.py) egg_info for package psycopg2Installing collected packages: psycopg2  Running setup.py install for psycopg2    building ''psycopg2._psycopg'' extension    cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.5.2 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x090303 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/usr/local/Cellar/postgresql/9.3.3/include -I/usr/local/Cellar/postgresql/9.3.3/include/server -c psycopg/psycopgmodule.c -o build/temp.macosx-10.9-intel-2.7/psycopg/psycopgmodule.o    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: command ''cc'' failed with exit status 1    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__=''/private/var/folders/0z/ljjwsjmn4v9_zwm81vhxj69m0000gn/T/pip_build_tino/psycopg2/setup.py'';exec(compile(getattr(tokenize, ''open'', open)(__file__).read().replace(''\r\n'', ''\n''), __file__, ''exec''))" install --record /var/folders/0z/ljjwsjmn4v9_zwm81vhxj69m0000gn/T/pip-bnWiwB-record/install-record.txt --single-version-externally-managed --compile:    running installrunning buildrunning build_pycreating buildcreating build/lib.macosx-10.9-intel-2.7creating build/lib.macosx-10.9-intel-2.7/psycopg2copying lib/__init__.py -> build/lib.macosx-10.9-intel-2.7/psycopg2copying lib/_json.py -> build/lib.macosx-10.9-intel-2.7/psycopg2copying lib/_range.py -> build/lib.macosx-10.9-intel-2.7/psycopg2copying lib/errorcodes.py -> build/lib.macosx-10.9-intel-2.7/psycopg2copying lib/extensions.py -> build/lib.macosx-10.9-intel-2.7/psycopg2copying lib/extras.py -> build/lib.macosx-10.9-intel-2.7/psycopg2copying lib/pool.py -> build/lib.macosx-10.9-intel-2.7/psycopg2copying lib/psycopg1.py -> build/lib.macosx-10.9-intel-2.7/psycopg2copying lib/tz.py -> build/lib.macosx-10.9-intel-2.7/psycopg2creating build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/__init__.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/dbapi20.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/dbapi20_tpc.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_async.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_bug_gc.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_bugX000.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_cancel.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_connection.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_copy.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_cursor.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_dates.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_extras_dictcursor.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_green.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_lobject.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_module.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_notify.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_psycopg2_dbapi20.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_quote.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_transaction.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_types_basic.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_types_extras.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/test_with.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/testconfig.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testscopying tests/testutils.py -> build/lib.macosx-10.9-intel-2.7/psycopg2/testsrunning build_extbuilding ''psycopg2._psycopg'' extensioncreating build/temp.macosx-10.9-intel-2.7creating build/temp.macosx-10.9-intel-2.7/psycopgcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.5.2 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x090303 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/usr/local/Cellar/postgresql/9.3.3/include -I/usr/local/Cellar/postgresql/9.3.3/include/server -c psycopg/psycopgmodule.c -o build/temp.macosx-10.9-intel-2.7/psycopg/psycopgmodule.oclang: 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 futureerror: command ''cc'' failed with exit status 1----------------------------------------Cleaning up...Command /usr/bin/python -c "import setuptools, tokenize;__file__=''/private/var/folders/0z/ljjwsjmn4v9_zwm81vhxj69m0000gn/T/pip_build_tino/psycopg2/setup.py'';exec(compile(getattr(tokenize, ''open'', open)(__file__).read().replace(''\r\n'', ''\n''), __file__, ''exec''))" install --record /var/folders/0z/ljjwsjmn4v9_zwm81vhxj69m0000gn/T/pip-bnWiwB-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/0z/ljjwsjmn4v9_zwm81vhxj69m0000gn/T/pip_build_tino/psycopg2

答案1

小编典典

您可以通过在编译之前设置以下环境变量来告诉 clang 不要将此作为错误提出:

export CFLAGS=-Qunused-argumentsexport CPPFLAGS=-Qunused-arguments

然后pip install psycopg2应该工作。

尝试时我也有同样的情况pip install lxml

编辑:如果您以超级用户身份安装(如果您尝试附加到/Library/Python/2.7/site-packagesOS X 附带的原生 Apple
工厂安装的 Python 发行版,而不是您随后自己安装的其他 Python 发行版,则可能会出现这种情况),那么您将需要按照@Thijs Kuipers
在以下评论中的描述进行操作:

sudo -E pip install psycopg2

或等效的,对于您可能替换的任何其他包名称psycopg2.

更新 [2014-05-16]:Apple 已通过更新的系统 Python(2.7、2.6 和 2.5)修复了此问题,OS X10.9.3因此在使用最新的 Mavericks 和Xcode 5.1+. OS X10.8.x但是,到目前为止,如果您在那里使用(Mountain Lion,目前为 10.8.5),仍然需要解决方法Xcode 5.1+

'easy_install -U cython'无法抱怨vcvarsall.bat和-mno-cygwin

'easy_install -U cython'无法抱怨vcvarsall.bat和-mno-cygwin

在Windows下,似乎具有C依赖性的easy_install不是很容易。

尝试1 – vcvarsall.bat错误

我使用cython在Windows7下安装MinGw ; 我修改了Windows7的PATH以包含C:MinGwbin 。 在这一点上,我试图easy_install -U cython ,并得到了…

C:Usersmike_penningtonDesktopTestDrive>easy_install -U cython Searching for cython Reading http://pypi.python.org/simple/cython/ Reading http://www.cython.org Reading http://cython.org Best match: Cython 0.15.1 Downloading http://cython.org/release/Cython-0.15.1.zip Processing Cython-0.15.1.zip Running Cython-0.15.1setup.py -q bdist_egg --dist-dir c:usersmike_p~1appdata localtempeasy_install-qr1tetCython-0.15.1egg-dist-tmp-556kzq Compiling module Cython.Plex.Scanners ... Compiling module Cython.Compiler.Scanning ... Compiling module Cython.Compiler.Parsing ... Compiling module Cython.Compiler.Visitor ... Compiling module Cython.Compiler.Code ... Compiling module Cython.Runtime.refnanny ... warning: no files found matching ''bugs.txt'' under directory ''tests'' error: Setup script exited with error: Unable to find vcvarsall.bat C:Usersmike_penningtonDesktopTestDrive>

尝试2 – 修复vcvarsall.bat错误

接下来,按照我发现的博客的build议,我也尝试把它放在C:Python27Libdistutilsdistutils.cfg以修复vcvarsall.bat错误。

[build] compiler=mingw32

这只能略微帮助…

C:Python27LibdisTUT~1>easy_install -U cython Searching for cython Reading http://pypi.python.org/simple/cython/ Reading http://www.cython.org Reading http://cython.org Best match: Cython 0.15.1 Downloading http://cython.org/release/Cython-0.15.1.zip Processing Cython-0.15.1.zip Running Cython-0.15.1setup.py -q bdist_egg --dist-dir c:usersmike_p~1appdata localtempeasy_install-kfif_oCython-0.15.1egg-dist-tmp-o1tbkp Compiling module Cython.Plex.Scanners ... Compiling module Cython.Compiler.Scanning ... Compiling module Cython.Compiler.Parsing ... Compiling module Cython.Compiler.Visitor ... Compiling module Cython.Compiler.Code ... Compiling module Cython.Runtime.refnanny ... warning: no files found matching ''bugs.txt'' under directory ''tests'' cc1.exe: error: unrecognized command line option ''-mno-cygwin'' error: Setup script exited with error: command ''gcc'' Failed with exit status 1 C:Python27LibdisTUT~1>

警告 – 没有cygwin或预编译的二进制文件

我意识到,我可能能够在cygwin下工作。 不过,我不希望cygwin依赖这个库; 我需要本地的Windows7输出。

如果可能的话,我想避免预编译的Cython二进制文件,因为正如作者所说,它们“不受支持,仅用于testing”。

我怎样才能得到cython安装在Windows7下使用MinGw easy_install ?

经过更多的Google搜索之后,我找到了一些指导,建议从C:Python27Libdistutilscygwinccompiler.py删除-mno-cygwin ,因为有一个distutils错误 。

从C:Python27Libdistutilscygwinccompiler.py删除-mno-cygwin得到了cython编译。

总结

以上是小编为你收集整理的''easy_install -U cython''无法抱怨vcvarsall.bat和-mno-cygwin全部内容。

如果觉得小编网站内容还不错,欢迎将小编网站推荐给好友。

Android Fused LocationSettingsRequest从startResolutionForResult中删除“never”选项

Android Fused LocationSettingsRequest从startResolutionForResult中删除“never”选项

a根据这个:

https://developers.google.com/android/reference/com/google/android/gms/location/SettingsApi

您可以使用startResolutionForResult()检查是否满足位置要求,如果不满足则显示对话框.

在该对话框中,您可以选择“ok”,“not this time”或“never”.

是否可以禁用“从不”选项?

Google地图官方应用已禁用该选项.

解决方法

是的,所以当你使用LocationSettingsRequest.Builder. setAlwaysShow(true)构建设置请求时,你会这样做.一个例子如下:
LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder()
                .addLocationRequest(mLocationRequest)
                .setAlwaysShow(true);

arm-none-eabi-gcc.exe:错误:无法识别的命令行选项'-mno-fpu'

arm-none-eabi-gcc.exe:错误:无法识别的命令行选项'-mno-fpu'

如何解决arm-none-eabi-gcc.exe:错误:无法识别的命令行选项''-mno-fpu''?

我正在研究nds游戏教程。本教程将使精灵在游戏中显示。当我编译它时,它显示arm-none-eabi-gcc.exe: error: unrecognized command-line option ''-mno-fpu'' gcc版本是9.3.0。教程网站是https://d2l62mv7qj2i3f.cloudfront.net/NDS/Tutorials_Day_5

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

brew install php55 报错 clang: error

brew install php55 报错 clang: error

clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: symbol(s) not found for architecture x86_64
make: *** [sapi/fpm/php-fpm] Error 1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libs/libphp5.bundle] Error 1

解决办法:

brew install libxml2
brew link libxml2 --force

今天的关于clang 错误:未知参数:'-mno-fused-madd'python 包安装失败的分享已经结束,谢谢您的关注,如果想了解更多关于'easy_install -U cython'无法抱怨vcvarsall.bat和-mno-cygwin、Android Fused LocationSettingsRequest从startResolutionForResult中删除“never”选项、arm-none-eabi-gcc.exe:错误:无法识别的命令行选项'-mno-fpu'、brew install php55 报错 clang: error的相关知识,请在本站进行查询。

本文标签: