LoginSignup
8
5

More than 5 years have passed since last update.

【iOS 11】【Core ML】pip install coremltools でエラーになった場合の対処法

Posted at

Core ML Tools の公式ページ によると、

$ pip install -U coremltools

これだけでインストールできるとのことでさっそく実行してみると、以下のようなエラーが出ました。

Collecting coremltools
  Could not find a version that satisfies the requirement coremltools (from versions: )
No matching distribution found for coremltools

みんな遭遇してるらしく、Twitter検索で以下のツイートを見つけました。

(余談ですがGPUImageの作者の方ですね)

というわけで

$ pyenv versions

で入ってるPythonのバージョンを確認して、

  system
  2.7.11
  3.5.1
* anaconda3-2.5.0

バージョンを切り替え。

$ pyenv global 2.7.11

再度実行。

$ pip install -U coremltools

うまくインストールできました。

Successfully installed coremltools-0.3.0 numpy-1.13.0 protobuf-3.3.0 setuptools-36.0.1 six-1.10.0

8
5
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
8
5