mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:22:09 +02:00
virtualenv: add Chinese translation
This commit is contained in:
parent
56a1739937
commit
4418689516
1 changed files with 24 additions and 0 deletions
24
pages.zh/common/virtualenv.md
Normal file
24
pages.zh/common/virtualenv.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# virtualenv
|
||||
|
||||
> 创建被隔离的的 Python 虚拟环境.
|
||||
> 更多信息: <https://virtualenv.pypa.io/>.
|
||||
|
||||
- 创建新环境:
|
||||
|
||||
`virtualenv {{path/to/venv}}`
|
||||
|
||||
- 自定义提示符:
|
||||
|
||||
`virtualenv --prompt={{prompt_prefix}} {{path/to/venv}}`
|
||||
|
||||
- 为虚拟环境使用不同的Python版本:
|
||||
|
||||
`virtualenv --python={{path/to/pythonbin}} {{path/to/venv}}`
|
||||
|
||||
- 启动 (选择) 环境:
|
||||
|
||||
`source {{path/to/venv}}/bin/activate`
|
||||
|
||||
- 停止环境:
|
||||
|
||||
`deactivate`
|
Loading…
Add table
Reference in a new issue