国产探花免费观看_亚洲丰满少妇自慰呻吟_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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 宽城| 南漳县| 香格里拉县| 洪江市| 洛隆县| 馆陶县| 望江县| 巴彦县| 瓦房店市| 榆林市| 全南县| 西城区| 五莲县| 文水县| 商城县| 延川县| 阿巴嘎旗| 安仁县| 衡阳县| 丹寨县| 澄迈县| 正安县| 永德县| 铜鼓县| 鹿泉市| 扶风县| 衡南县| 朔州市| 吴旗县| 兴城市| 台山市| 达孜县| 金平| 娄底市| 玉树县| 海兴县| 吉木萨尔县| 尉氏县| 万荣县| 澎湖县| 陇南市|