[PYTHON] Broken pip command

Background

I heard that cling can be used with jupyter and installed it, but if I use the pip command,

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

I got an error saying that pip didn't know pip.

Alright, update pip! pip install -U pip! Well, it's impossible because you can't use pip. It's jammed.

Solution

The official pip docs says to run this script, and it looks like it worked. (There is a warning message, but if it doesn't work, it won't work in the first place, so let's go through)

In a directory that doesn't get in the way

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

I ran it like that, and it started working safely. For pip3, it's OK if you run it with python3. I'm happy.

Recommended Posts

Broken pip command
pip command collection
Install the pip command
Command installation destination with pip, easy_install
Don't you know it? pip command
Execution of pip command under proxy (memorial)
Linux command # 4
Linux command # 3
Command memorandum
nkf command
command prompt
vim command
pip installation
1. Reinstall pip
pip memorandum
sed command
Linux command # 5
grep command
About pip
command memo
top command
pip installation
Command memorandum
Command memo
mv command
seq command
pip installation
Command to automatically update pip library at once