본문 바로가기

PY(Python Image Processing)

python pip install

728x90

Python pip Installation Guide

Scenario 1: Installing pip Without --user Option (Recommended)

If you have administrator (root) access, you can install pip system-wide without using the --user option.

Steps:

  1. Run the following command:
    python3 get-pip.py
  2. Verify the installation:
    pip --version

Scenario 2: Installing pip With --user Option

If you do not have administrator access, you can install pip in your user directory using the --user option.

Steps:

  1. Run the following command:
    python3 get-pip.py --user
  2. Add the local pip path to your PATH environment variable:
    export PATH=$PATH:~/.local/bin
    Add this line to your ~/.bashrc (or ~/.zshrc, etc.) file to make it permanent.
  3. Verify the installation:
    pip --version

Note:

  • If you don’t update your PATH variable, you might need to use:
    python3 -m pip --version
    instead of pip --version.

그냥 --user 옵션없이 python3 get-pip.py 하면 전역에서 쓸 수 있다.

  • 쓸데없는 짓 금지
728x90