Pythonでpip install -U numpyするとclang error
春休みなので友人のお下がりのMacに環境を構築している。
pipを入れて、virtualenvを入れて、sudo pip install -U numpy
するとclang error
なるエラーが出てインストールできなかった。
> sudo pip install -U numpy ... cc: _configtest.c 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 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 failure. ... RuntimeError: Broken toolchain: cannot link a simple C program ---------------------------------------- Cleaning up...
Xcode関係のclangのアップデートが原因らしい。
This is caused by the latest clang update from Apple that came with Xcode 5.1 today and is affecting many, many people, so hopefully a fix will appear soon.
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install numpy
を実行するとインストールできた。
入門 自然言語処理(O'Reilly) 2章 (1)
『入門 自然言語処理』2章 テキストコーパスと語彙資源へのアクセス (1)
- 作者: Steven Bird,Ewan Klein,Edward Loper,萩原正人,中山敬広,水野貴明
- 出版社/メーカー: オライリージャパン
- 発売日: 2010/11/11
- メディア: 大型本
- 購入: 20人 クリック: 639回
- この商品を含むブログ (44件) を見る
コーパス(corpus)とは、言語学において、自然言語処理の研究に用いるため、自然言語の文章を構造化し大規模に集積したもの。構造化では言語的な情報(品詞、統語構造など)が付与される。 コーパス - Wikipedia
コーパスには生データだけではなく、品詞などのデータが付与されてたりする。
続きを読む3回生後期が始まりました
この夏休みは充実していた。
- 08/06-09/07: London(UK)
- 09/07-09/13: Paris(France)
- 09/14-09/16: Amsterdam, Utrecht(Holland)
- 09/17 : Paris
- 09/18-09/22: Stockholm, Linköping(Sweden)
- 09/23-09/25: London -> Shanghai -> Japan
- 09/26-09/30: Tokyo
- Today : Kyoto
今年度の目標は語学。後期も継続の見込み。