Parcourir la source

virtual env notes

Kristofer Younger il y a 6 ans
Parent
révision
53ea2226cf
1 fichiers modifiés avec 13 ajouts et 0 suppressions
  1. 13
    0
      README.md

+ 13
- 0
README.md Voir le fichier

@@ -10,6 +10,19 @@ Ideas around python/flask labs and lectures:
10 10
 `brew install python` gets python3 on your mac
11 11
 [The Hitchhiker’s Guide to Python](http://docs.python-guide.org/en/latest/) for *fascinating* information on your new **Best Friend**, *python* (3)
12 12
 
13
+#### Creating and Using a Virtual Python Environment
14
+
15
+```bash
16
+$ python3 -m venv ./PythonEnv
17
+
18
+$ source ./PythonEnv/bin/activate
19
+
20
+$ which python
21
+
22
+```
23
+
24
+just kill the terminal window to rid yourself of the virtual env.
25
+
13 26
 ### Docker
14 27
 
15 28
 once installed, and the mysql is running: