DEV Community


Discussion on: why Django loss it's dependencies.

corentinbettiol profile image
Corentin Bettiol

You may need to source your virtual environment before working with your website :

python3 -m venv .venv # create a virtual environment folder named .venv
. .venv/bin/activate # source the environment, using "python3" should now use the python3 executable inside the environment
python3 -m pip install -r requirements.txt # install all the requirements inside the virtual environment (and not on the default folder in the host system)
Enter fullscreen mode Exit fullscreen mode

The important command here is . .venv/bin/environment :)