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

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

Post 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?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post