a bash script. As first, i activate the venv with
Source /project_folder/script/venv/bin/activate
and then i launch python3 main.py
Unfortunately it fails since it doesn't resolve the first import on the code.
Of course on the venv the package is present.
How can i fix it? Looks like it doesn't entered in the right venv or something like this.
That's why I prefer to use poetry as it manages venv automatically
Isn't the script for activation inside venv/scripts/activate? Try that, if that doesn't work, use setuptools or poetry to publish your package and then install it with pip
No the script for activation is in bin
that's for Windows
Just source <virtualenv_name> / scripts/activate will do on windows provided you use the git bash
I'm on Mac using zsh
Zsh no obtiene la "/"
!english
Обсуждают сегодня