Skip to content

Commit cea5a86

Browse files
committed
Updates PythonEnvironment.md
Auto commit by GitBook Editor
1 parent 0b55c31 commit cea5a86

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

PythonEnvironment.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,12 @@ See `pyenv help <command>' for information on a specific command.
129129
For full documentation, see: https://github.com/yyuu/pyenv#readme
130130
```
131131
132-
**local命令**
132+
**local命令:**
133+
133134
local命令切换当前目录及子目录的Python版本,可以通过删除'.python-version'恢复默认Python版本;
134135
135-
**global命令**
136+
**global命令:**
137+
136138
global切换全局默认Python版本,不建议这么使用;
137139
138140
#### virtualenv命令:
@@ -152,13 +154,17 @@ Usage: pyenv virtualenv [-f|--force] [VIRTUALENV_OPTIONS] [version] <virtualenv-
152154
-f/--force Install even if the version appears to be installed already
153155
```
154156
155-
**install命令**
157+
**install命令:**
158+
156159
安装指定版本,后面直接跟版本号即可;
157160
158-
**Uninstall命令**
161+
**Uninstall命令:**
162+
159163
卸载某个版本,包括虚拟环境;
160164
165+
环境配置情况:
161166
python的环境是基于site的,即整个机器的python环境是一样的;
167+
162168
java是基于project的,每个项目可以使用不同的java环境;
163169
164170
### pyenv virtualenv 命令:

0 commit comments

Comments
 (0)