Python/venv: Difference between revisions

From Wiki
No edit summary
mNo edit summary
 
Line 12: Line 12:
<pre>
<pre>
which python
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