개발/Python

Ubuntu pip install / upgrade

강서버 2023. 3. 7. 02:22
728x90
반응형

[ Ubuntu 22.04 / 20.04 ]

 

[ pip install ]

$ sudo apt install python3-pip

 

[ pip version ]

$ pip --version
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

 

[ pip upgrade ]
$ pip install --upgrade pip
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /usr/lib/python3/dist-packages (22.0.2)
Collecting pip
  Downloading pip-23.0.1-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 7.5 MB/s eta 0:00:00
Installing collected packages: pip
Successfully installed pip-23.0.1

 

or

 

$ python -m pip install --upgrade pip

Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in ./.local/lib/python3.10/site-packages (23.0.1)

 

 

[ Windows ]

 

[ pip version ]

C:\Users\user>pip --version
pip 21.1.1 from c:\python\python38\lib\site-packages\pip (python 3.8)

[ pip upgrade]

C:\Users\user>python -m pip install --upgrade pip
Requirement already satisfied: pip in c:\dev\python\python311\lib\site-packages (22.3.1)
Collecting pip
  Using cached pip-23.0.1-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.3.1
    Uninstalling pip-22.3.1:
      Successfully uninstalled pip-22.3.1
Successfully installed pip-23.0.1

 

728x90
반응형

'개발 > Python' 카테고리의 다른 글

Linux Anaconda Download, Install, Update  (0) 2023.04.18
python library install  (0) 2023.03.07
Ubuntu 20.04 Python 3.9 / 3.10 install  (2) 2022.04.04
Python 3.9 pip run error  (0) 2022.01.11
PyCharm PEP8 setting  (0) 2021.06.18