瀏覽代碼

virtual env notes

Kristofer Younger 6 年之前
父節點
當前提交
53ea2226cf
共有 1 個檔案被更改,包括 13 行新增0 行删除
  1. 13
    0
      README.md

+ 13
- 0
README.md 查看文件

@@ -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: