前提・実現したいこと
グローバルのpipのバージョンをあげたいのですが、ずっと18.1のままになってしまいます。
何か20.2.4に変更するコマンドが必要なのでしょうか。
わかる方がいましたら、コメントお願いします。
発生している問題・エラーメッセージ
sudo python3 -m pip install --force-reinstall -U pip Collecting pip Using cached pip-20.2.4-py2.py3-none-any.whl (1.5 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 20.2.4 Uninstalling pip-20.2.4: Successfully uninstalled pip-20.2.4 Successfully installed pip-20.2.4
pip -V pip 18.1 from /home/ubuntu/.local/lib/python3.8/site-packages/pip (python 3.8)
###試したこと
ubuntu@ubuntu:~$ sudo apt-get remove python3-pip Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: python-pip-whl python3-wheel Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: python3-pip 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 1047 kB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 138268 files and directories currently installed.) Removing python3-pip (20.0.2-5ubuntu1.1) ... Processing triggers for man-db (2.9.1-1) ... ubuntu@ubuntu:~$ pip -V pip 18.1 from /home/ubuntu/.local/lib/python3.8/site-packages/pip (python 3.8) ubuntu@ubuntu:~$ pip3 -V pip 18.1 from /home/ubuntu/.local/lib/python3.8/site-packages/pip (python 3.8)
ubuntu@ubuntu:~$ sudo apt-get install python3-pip Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: python3-pip 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 230 kB of archives. After this operation, 1047 kB of additional disk space will be used. Get:1 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 python3-pip all 20.0.2-5ubuntu1.1 [230 kB] Fetched 230 kB in 2s (135 kB/s) Selecting previously unselected package python3-pip. (Reading database ... 138067 files and directories currently installed.) Preparing to unpack .../python3-pip_20.0.2-5ubuntu1.1_all.deb ... Unpacking python3-pip (20.0.2-5ubuntu1.1) ... Setting up python3-pip (20.0.2-5ubuntu1.1) ... Processing triggers for man-db (2.9.1-1) ... ubuntu@ubuntu:~$ pip3 uninstall pip Uninstalling pip-18.1: Would remove: /home/ubuntu/.local/bin/pip /home/ubuntu/.local/bin/pip3 /home/ubuntu/.local/bin/pip3.8 /home/ubuntu/.local/lib/python3.8/site-packages/pip-18.1.dist-info/* /home/ubuntu/.local/lib/python3.8/site-packages/pip/* Proceed (y/n)? Y Successfully uninstalled pip-18.1 ubuntu@ubuntu:~$ pip -V -bash: /home/ubuntu/.local/bin/pip: No such file or directory ubuntu@ubuntu:~$ pip3 -V -bash: /home/ubuntu/.local/bin/pip3: No such file or directory
補足情報(FW/ツールのバージョンなど)
Ubuntu 20.04.1
回答1件
あなたの回答
tips
プレビュー