It's best practise to have a requirements.txt file for Python dependency tracking.
It's used so everyone has the same project environments in terms of libraries used and also their respective versions, plus you don't have to go trough all the files and find missing imports when cloning (for the first time I guess).
pip list --format=freeze > requirements.txt
Outputs a requirements.txt file that contains all third party Python libraries used in the repo.
When cloning repo, run the commands:
python -m venv venv
to create a virtual environment
pip list --format=freeze > requirements.txt
to install the required third party libraries.
This way everything works out of the box :)
It's best practise to have a requirements.txt file for Python dependency tracking.
It's used so everyone has the same project environments in terms of libraries used and also their respective versions, plus you don't have to go trough all the files and find missing imports when cloning (for the first time I guess).
`pip list --format=freeze > requirements.txt`
Outputs a requirements.txt file that contains all third party Python libraries used in the repo.
When cloning repo, run the commands:
`python -m venv venv`
to create a virtual environment
`pip list --format=freeze > requirements.txt`
to install the required third party libraries.
This way everything works out of the box :)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
It's best practise to have a requirements.txt file for Python dependency tracking.
It's used so everyone has the same project environments in terms of libraries used and also their respective versions, plus you don't have to go trough all the files and find missing imports when cloning (for the first time I guess).
pip list --format=freeze > requirements.txtOutputs a requirements.txt file that contains all third party Python libraries used in the repo.
When cloning repo, run the commands:
python -m venv venvto create a virtual environment
pip list --format=freeze > requirements.txtto install the required third party libraries.
This way everything works out of the box :)
Why was this closed? @bauljamic123arlijam
I would reopen it and merge the changes