Python Flashcards

1
Q

Save package list for deployment

A

Once all necessary packages are added

pip freeze > requirements.txt
creates a requirement file.

pip install -r requirements.txt
installs those packages again, say during production.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly