Python/venv: Difference between revisions

From Wiki
(Die Seite wurde neu angelegt: „* setup environment <pre> python3 -m venv env </pre> * activate environment <pre> source env/bin/activate </pre>“)
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
<pre>
<pre>
source env/bin/activate
source env/bin/activate
</pre>
* check which environment is used
<pre>
which python
</pre>
* install requirements into venv
<pre>
pip install -r requirements.txt
</pre>
</pre>

Latest revision as of 21:10, 4 March 2021

  • setup environment
python3 -m venv env
  • activate environment
source env/bin/activate
  • check which environment is used
which python
  • install requirements into venv
pip install -r requirements.txt