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:
- Run the following command:
python3 get-pip.py - 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:
- Run the following command:
python3 get-pip.py --user - Add the local
pippath to your PATH environment variable:
Add this line to yourexport PATH=$PATH:~/.local/bin~/.bashrc(or~/.zshrc, etc.) file to make it permanent. - Verify the installation:
pip --version
Note:
- If you don’t update your PATH variable, you might need to use:
instead ofpython3 -m pip --versionpip --version.
그냥 --user 옵션없이 python3 get-pip.py 하면 전역에서 쓸 수 있다.
- 쓸데없는 짓 금지
728x90
'PY(Python Image Processing)' 카테고리의 다른 글
| optical flow - python, opencv, 추상화 클래스 추가 구현 (0) | 2024.12.24 |
|---|---|
| optical flow - opencv & python (0) | 2024.12.24 |
| kakaotalk PC APP setText test (0) | 2024.08.15 |
| LLM Summary prompt test to facebook/bart-large-cnn (0) | 2024.08.14 |
| LLM evaluation test for gpt2 (0) | 2024.08.14 |