Help us understand the problem. What is going on with this article?

pipコマンドが壊れた件

More than 3 years have passed since last update.

経緯

jupyterでclingが使えると聞いてインストールしていたら、pipコマンドを使うと、

Traceback (most recent call last):
  File "/usr/local/bin/pip", line 7, in <module>
    from pip import main
ImportError: No module named pip

というエラーが出て、pipがpipを知らんって言い出した。

よし、pipを更新だ!pip install -U pip!・・・ってまあ、pip使えないから無理じゃん。詰んだ。

解決

pipの公式ドキュメントに、このスクリプトを実行しろって書いてあって、それでどうにかなったっぽい。(なんか警告文があるけど、動かないとそもそもダメだから、スルーしまーす)

適当にじゃまにならないディレクトリで、

wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
python3 get-pip.py

という感じで実行して、無事、動くようになりました。pip3については、python3で実行したらOK。めでたしめでたし。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away