LoginSignup
3
2

More than 5 years have passed since last update.

pipを10に上げたら、うまく動かない

Last updated at Posted at 2018-05-16

困った。

csvkitを入れようとしたら、

pipでインストールできない。

$ pip install csvkit --user

Traceback (most recent call last):
  File "/home/hogehoge/.pyenv/versions/2.7.14/bin/pip", line 7, in <module>
    from pip import main
ImportError: cannot import name main

pythonのバージョンは、

$ python -V
Python 2.7.14

pip--userでユーザ側に入っている。


参考サイトはこちら

pipの前に、python -mをつければ良いらしい。

$ python -m pip install csvkit --user

一応動きそうです。


ついでに見つけたもの。

  • pip-review
    • pipでいれたパッケージを一括アップデート


もう少しパッケージ管理が楽になると良いですな。

特に借りてるHPC環境などで。

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