Buat persyaratan.txt Python
pip list --format=freeze > requirements.txt
Lazy Leopard
pip list --format=freeze > requirements.txt
# To generate your requrements file do:
pip freeze > requirements.py
# To install the requrements do:
pip install -r requirements.py
# If you want to make sure pip is using python3, you can do this:
python3 -m pip freeze > requirements.py
python3 -m pip install -r requirements.py
# Or:
pip3 freeze > requirements.py
pip3 install -r requirements.py
pip list --format=freeze > requirements.txt
pip install pipreqs
pipreqs /path/to/project