Setting up first python project environment? : learnpython

How to initialize a project enviroment:

create new projectfolder
cd into it
>> python -m venv “venv”
use vsc terminal to start venv
>> source venv/bin/activate (linux)
>> ./venv/scripts/activate (win)
>> pip install django, requests, ….
after installing all packages create requirements.txt:
>> pip freeze > requirements.txt
if you already have a requirements.txt skip installing manually by simply:
>> python -m pip inst…