개발/Python

PIP package backup / restore

강서버 2023. 4. 19. 18:42
728x90
반응형

PIP package list

$ pip freeze
beautifulsoup4==4.12.2
Django==4.2
html5lib==1.1
httplib2==0.20.2
matplotlib==3.7.1
numpy==1.24.2
pandas==2.0.0
Pillow==9.0.1
requests==2.28.2
scikit-learn==1.2.1
scipy==1.10.1
six==1.16.0

 

PIP package backup (file : requirements.txt)

$ pip freeze > requirements.txt

 

=> Copy other pc file(requirements.txt)

 

PIP package restore

pip install --upgrade -r requirements.txt
Requirement already satisfied: beautifulsoup4==4.12.2 in /home/user/.local/lib/python3.10/site-packages (from -r requirements.txt (line 8)) (4.12.2)
Requirement already satisfied: Django==4.2 in /home/user/.local/lib/python3.10/site-packages (from -r requirements.txt (line 26)) (4.2)
Requirement already satisfied: html5lib==1.1 in /home/user/.local/lib/python3.10/site-packages (from -r requirements.txt (line 39)) (1.1)
Requirement already satisfied: httplib2==0.20.2 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 40)) (0.20.2)
Requirement already satisfied: matplotlib==3.7.1 in /home/user/.local/lib/python3.10/site-packages (from -r requirements.txt (line 61)) (3.7.1)
Requirement already satisfied: numpy==1.24.2 in /home/user/.local/lib/python3.10/site-packages (from -r requirements.txt (line 67)) (1.24.2)
Requirement already satisfied: pandas==2.0.0 in /home/user/.local/lib/python3.10/site-packages (from -r requirements.txt (line 72)) (2.0.0)
Requirement already satisfied: Pillow==9.0.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 75)) (9.0.1)
Requirement already satisfied: requests==2.28.2 in /home/user/.local/lib/python3.10/site-packages (from -r requirements.txt (line 95)) (2.28.2)
Requirement already satisfied: scikit-learn==1.2.1 in /home/user/.local/lib/python3.10/site-packages (from -r requirements.txt (line 98)) (1.2.1)
Requirement already satisfied: scipy==1.10.1 in /home/user/.local/lib/python3.10/site-packages (from -r requirements.txt (line 99)) (1.10.1)
Requirement already satisfied: six==1.16.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 101)) (1.16.0)

 

728x90
반응형