Repo init Python requirements #23
		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.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