[Tip] Python requirements.txt export and install
Requirements.txt export
-
Activate the virtual environment. (or in non-virtual environment)
-
Type “pip freeze > requirements.txt”
-
‘requirements.txt’ is created in the base folder.
Requirements.txt install
-
Activate the virtual environment where you want to install the requirements.txt
-
Type “pip install -r requirements.txt”
-
The installation is completed
댓글남기기