Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

入れ立てpip環境でCommand "python setup.py egg_info" failed with error code 1 in ……とか言われたらsetuptoolsがちゃんと入っていないかも

実際のところ

pipの環境をつくり、bottleを導入しようとしたところ以下のエラーが。

$ pip3 install bottle
Collecting bottle
  Downloading https://files.pythonhosted.org/packages/bd/99/04dc59ced52a8261ee0f965a8968717a255ea84a36013e527944dbf3468c/bottle-0.12.13.tar.gz (70kB)
    100% |████████████████████████████████| 71kB 691kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named 'setuptools'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-yichxlqw/bottle/

エラーログをみると、"setuptools"がないとか言ってますね。

$ pip3 install --upgrade setuptools
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/e7/16/da8cb8046149d50940c6110310983abb359bbb8cbc3539e6bef95c29428a/setuptools-40.6.2-py2.py3-none-any.whl (573kB)
    100% |████████████████████████████████| 573kB 564kB/s 
Installing collected packages: setuptools
Successfully installed setuptools-40.6.2