国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > Python > 正文

pip 錯誤unused-command-line-argument-hard-error-in-future解決辦法

2020-02-23 05:25:05
字體:
來源:轉載
供稿:網友

在我的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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 西乌| 鄂伦春自治旗| 闸北区| 迭部县| 息烽县| 长岛县| 思南县| 望奎县| 社会| 阳东县| 余江县| 上栗县| 二连浩特市| 武宣县| 葵青区| 札达县| 布尔津县| 拉萨市| 开平市| 朝阳市| 柳江县| 安丘市| 噶尔县| 景宁| 云浮市| 高陵县| 北安市| 新密市| 黔西县| 崇左市| 久治县| 年辖:市辖区| 江油市| 吉水县| 呼和浩特市| 刚察县| 萍乡市| 五峰| 织金县| 双桥区| 萍乡市|