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

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie geht man bei der Ausführung eines Bash -Skripts in ein Python Virtualenv?

by Anonymous » 04 Mar 2025, 13:52

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?

Top