簡體   English   中英

在OS X上的Cython安裝錯誤

[英]Cython Installation Error on Os X

我嘗試通過pip,easy_install和源代碼安裝Cython。 我在OsX Maverics上遇到以下錯誤:

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

我正在使用Python 2.7.5

pip version 1.4.1

如何解決此錯誤?

這是小牛的問題。 您可以按以下步驟規避此問題:

終奌站:

sudo CFLAGS=-Wunused-command-line-argument-hard-error-in-future pip install cython

這會將錯誤抑制為警告,從而允許您安裝cython。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM