LoginSignup
2
5

More than 5 years have passed since last update.

Ubuntu14.04 への Chainerのインストール中にsetuptoolsインスコで躓いたのでメモ

Last updated at Posted at 2016-04-13

Ubuntu14.04へChainerをインストールするにあたって下記のコマンドで関連ライブラリのインストールをしていきました。
参考はイラストで学ぶディープラーニング

$ sudo apt-get install python2.7
$ sudo apt-get install python-numpy
$ sudo apt-get install libhdf5-dev
$ sudo pip install -U setuptool
$ sudo pip install -U cython

しかしここでsetuptoolのupgaradeがうまくいかなくなった。
こんなエラーで止まる。

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

調べていくとどうやらpipのバージョンが古いと
アップグレードが上手くいかない事があるらしい

下記のコマンドでアップグレードする

$ sudo pip install --upgrade pip

pipが7.1.2から8.1.1へアップグレードされる

.
.
Collecting pip
  Downloading pip-8.1.1-py2.py3-none-any.whl (1.2MB)
    100% |████████████████████████████████| 1.2MB 584kB/s 
Installing collected packages: pip
  Found existing installation: pip 7.1.2
    Uninstalling pip-7.1.2:
      Successfully uninstalled pip-7.1.2
Successfully installed pip-8.1.1

pipのバージョンを確認

$ pip -V
pip 8.1.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

再度setuptoolsのアップグレードを上記参考サイトの手法で実施した

$ sudo pip install --upgrade setuptools

最終的にsetuptools-20.7.0のインストールに成功

.
.
.
Collecting setuptools
  Downloading setuptools-20.7.0-py2.py3-none-any.whl (508kB)
    100% |████████████████████████████████| 512kB 2.8MB/s 
Installing collected packages: setuptools
  Found existing installation: setuptools 3.3
    Uninstalling setuptools-3.3:
      Successfully uninstalled setuptools-3.3
Successfully installed setuptools-20.7.0

※後で正の方のコマンドで再インストールかけたら上手くいったので
 多分この問題は参考にした本の下記のコマンドsetuptools->setuptoolの誤記が原因?

誤 $ sudo pip install -U setuptool
正 $ sudo pip install -U setuptools

正の結果
Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages

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