没有合适的资源?快使用搜索试试~ 我知道了~
pip 错误unused-command-line-argument-hard-error-in-future解决办法
0 下载量 135 浏览量
2020-12-23
16:43:15
上传
评论
收藏 30KB PDF 举报
温馨提示
试读
1页
在我的Mac Air上,用pip安装一些Python库时,偶尔就会遇到一些报错,关于“unused-command-line-argument-hard-error-in-future”,错误如下:复制代码 代码如下: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-pro
资源推荐
资源详情
资源评论
pip 错误错误unused-command-line-argument-hard-error-in-
future解决办法解决办法
在我的Mac Air上,用pip安装一些Python库时,偶尔就会遇到一些报错,关于“unused-command-line-argument-hard-error-in-
future”,错误如下:
复制代码 代码如下:
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 -
I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_osx.c -o
build/temp.macosx-10.9-intel-2.7/psutil/_psutil_osx.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
这样的错误,出现次数多了,每次都去google,不如自己记录一下吧。
原因是: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.
解决方法:设置ARCHFLAGS参数,如下:
复制代码 代码如下:
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install psutil
您可能感兴趣的文章您可能感兴趣的文章:AndroidManifest.xml <uses-feature>和<uses-permisstion>分析及比较AndroidManifest.xml uses-feature
功能详解Starting MySQL.Manager of pid-file quit without updating file.[FAILED]的解决方法man -f/-k [keyword]在fedora 29 中
报错nothing appropriate
资源评论
weixin_38661650
- 粉丝: 7
- 资源: 928
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功