[Ubuntu 20.04] How to Install Python Pip

2020. 10. 15. 20:38·【Fundamental Tech】/Ubuntu
반응형

Installing pip for Python 2

Pip for Python 2 is not included in the Ubuntu 20.04 repositories. We’ll be installing pip for Python 2 using the get-pip.py script.

Start by enabling the universe repository:

$ sudo add-apt-repository universe

 

Update the packages index and install Python 2:

$ sudo apt update

$ sudo apt install python2

 

Use curl to download the get-pip.py script:

$ curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py

 

Once the repository is enabled, run the script as sudo user with python2 to install pip for Python 2:

$ sudo python2 get-pip.py

 

Pip will be installed globally. If you want to install it only for your user, run the command without sudo. The script will also install setuptools and wheel, which allow you to install source distributions.

반응형

'【Fundamental Tech】 > Ubuntu' 카테고리의 다른 글

부팅시 스크립트 자동 실행시키기(rc.local)  (0) 2022.07.30
APT repository 제거  (0) 2020.10.17
[Ubuntu 16.04] Scrapy 설치 (without virtualenv)  (0) 2016.12.19
ubuntu 시작시 자동으로 스크립트 실행  (0) 2012.10.28
dos2unix - ^M 문자 변환  (0) 2011.10.07
'【Fundamental Tech】/Ubuntu' 카테고리의 다른 글
  • 부팅시 스크립트 자동 실행시키기(rc.local)
  • APT repository 제거
  • [Ubuntu 16.04] Scrapy 설치 (without virtualenv)
  • ubuntu 시작시 자동으로 스크립트 실행
[一日一學, 一日一新]
[一日一學, 一日一新]
  • [一日一學, 一日一新]
    cyber93's Blog
    [一日一學, 一日一新]
  • 글쓰기 관리
    • 분류 전체보기 (218)
      • 【Research Logs】 (4)
      • 【🌟 Awesome】 (20)
      • 【BIMMER】 (4)
      • 【Fundamental Tech】 (101)
        • Algorithm (0)
        • BIOS & UEFI (3)
        • Kali (1)
        • Linux (54)
        • MacOSX (12)
        • openSUSE (1)
        • Raspberry Pi OS (2)
        • Ubuntu (25)
        • Windows (3)
      • 【Professional Tech】 (10)
        • CXL│NVMe│PCIe (7)
        • Docker│Kubernetes (0)
        • Test Automation Framework (3)
      • 【Programming】 (24)
        • C (6)
        • C++ (4)
        • Go (0)
        • Java (1)
        • JSP (2)
        • Javascript (0)
        • Node.js (1)
        • Python (10)
      • 【🧰 SW Info & Tips】 (55)
        • Automake & Autoconf (6)
        • Eclipse (3)
        • Git (1)
        • Gnuplot (0)
        • LaTex (5)
        • MacOSX Apps (9)
        • Source Insight (5)
        • SVN (4)
        • Vim (7)
        • Visual Studio (9)
  • 링크

    • cyber93's github
    • cyber93's github.io
    • 📚 책 읽고 정리
    • 👨‍💻 Today I Learned
    • 📖 Encyclopedia
    • 🔎 Linux Source Code
  • 인기 글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
[一日一學, 一日一新]
[Ubuntu 20.04] How to Install Python Pip
상단으로

티스토리툴바