Repo init Python requirements #23
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 :)
Why was this closed? @bauljamic123arlijam
I would reopen it and merge the changes