Page 1 of 1

Wie geht man bei der Ausführung eines Bash -Skripts in ein Python Virtualenv?

Posted: 04 Mar 2025, 13:52
by Anonymous
Wenn man definiert, welche Version von Python in einem Bash -Skript verwendet werden soll, wäre es < /p>

export PYTHON = "/path/python/python-3.5.1/bin/python"
< /code>

Aber für Python Virtualenvs führt man diese Befehle in der Befehlszeile aus < /p>

cd /path/pathto/virtualenv
source activate
cd another_directory
< /code>

Wie geht man in einem Bash -Skript "ein Python Virtualenv ein"? Was ist der Standardansatz hier?