LoginSignup
0
0

More than 5 years have passed since last update.

macのanaconda環境にPolyglotをインストールするのに半日かかったからメモを残しとく

Posted at

英文の自然言語処理におススメ!お手軽なPolyglotを使ってみた。という記事を見て面白そうだからひとまずPolyglotなるものをinstallしようとしたら、プログラミング初心者には茨の道だった。
今後のためにメモを残しておこうと思う。
失敗事例も末尾に残しておこうと思う。

はじめに

上記ブログに書いてある、関連モジュールをインポート。

次に

こちらの中程にある「From Source」セクションの、tarballをダウンロード

そして

ダウンロードしたtarballを解凍し、フォルダごとanacondaの site-package に投入する。

最後に

解凍したファイルのsetup.pyを実行する。実行するときは、
$ python setup.py install と、「install」をつけるのを忘れないこと!

無事にミッション完了したと思ったけど、実はスタートラインに立っただけだった。
早速Polyglotで遊ぼうと思います。

陥りがちな罠

  • 安易にpipでinstallしたのは良いが、anaconda環境で使えない(import errorとなる)。
  • Googleに導かれてAnaconda Cloudのページにたどり着いたことに安心したのも束の間。conda install -c derickl polyglot を実行したら以下のようなErrorとなり、なぜかGoogleに怒りを覚える。
error

Fetching package metadata ...............
Solving package specifications: .

UnsatisfiableError: The following specifications were found to be in conflict:
  - polyglot -> futures >=2.1.6 -> python 2.6*
  - python 3.6*
Use "conda info <package>" to see the dependencies for each package.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0