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

首頁 > 編程 > Python > 正文

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

2019-11-25 18:24:21
字體:
供稿:網(wǎng)友

在我的Mac Air上,用pip安裝一些Python庫時,偶爾就會遇到一些報錯,關(guān)于“unused-command-line-argument-hard-error-in-future”,錯誤如下:

復(fù)制代碼 代碼如下:

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

這樣的錯誤,出現(xiàn)次數(shù)多了,每次都去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.

解決方法:設(shè)置ARCHFLAGS參數(shù),如下:

復(fù)制代碼 代碼如下:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install psutil

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 三亚市| 天峨县| 上高县| 合阳县| 长治县| 台南县| 大同市| 普格县| 呼伦贝尔市| 仙游县| 深水埗区| 电白县| 和平区| 晋江市| 泸水县| 潮安县| 广宁县| 永定县| 扎赉特旗| 天门市| 台山市| 武川县| 富宁县| 卫辉市| 象山县| 宝坻区| 梁山县| 湟中县| 九江县| 佛山市| 连州市| 连平县| 正阳县| 新昌县| 清丰县| 朝阳县| 桐梓县| 安丘市| 洛阳市| 永仁县| 林西县|