Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rb:python [25/09/2019 14:38]
andrew [Install pip3]
rb:python [09/12/2019 12:09] (current)
andrew [Virtual Environment]
Line 31: Line 31:
  
 <code python> <code python>
-python3 -m venv venv+python3 -m venv <venv name>
  
-EACH time you will need to run this to avtivate the virtual env:-+eg. 
 +$ python3 ​-m venv stuff-env
  
-$ source ​venv/​bin/​activate + 
-(venv) $ _+# EACH time you will need to run this to avtivate the virtual env:- 
 + 
 +$ source ​stuff-env/​bin/​activate 
 +(stuff-env) $ 
 </​code>​ </​code>​
  
Line 45: Line 49:
  
 To quit the venv, use ''​deactivate''​ command (which venv adds to your path) To quit the venv, use ''​deactivate''​ command (which venv adds to your path)
 +
 +<​code>​
 +$ deactivate
 +$
 +</​code>​
  
  

rb/python.1569422329.txt.gz · Last modified: 25/09/2019 14:38 by andrew