generate requirement.txt
- for all packages in the env
pip3 freeze > requirements.txt
- for packages used in you project
pip3 install pipreqs
pipreqs
install
pip3 install -r requirements.txt
What’s the difference between pip and pip3?
What’s the difference between pip and pip3? Pip is for python version less than 3. and pip3 is used when you want to install packages for python version 3 or higher.
The text about is right in most of cases. The packages’ installation location is different for pip and pip3. But sometimes, the pip command in bash is a soft-link to pip3, if you want to check whether your env is this case, just use which pip
and which pip3
command to see the unix executable.