add new chinese translations
This commit is contained in:
20
pages.zh/common/venv.md
Normal file
20
pages.zh/common/venv.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# venv
|
||||
|
||||
> 在 Python 中创建轻量级虚拟环境。
|
||||
> 更多信息:<https://docs.python.org/3/library/venv.html>。
|
||||
|
||||
- 创建一个 Python 虚拟环境:
|
||||
|
||||
`python -m venv {{path/to/virtual_environment}}`
|
||||
|
||||
- 激活虚拟环境(Linux 和 macOS):
|
||||
|
||||
`source {{path/to/virtual_environment}}/bin/activate`
|
||||
|
||||
- 激活虚拟环境(Windows):
|
||||
|
||||
`{{path\to\virtual_environment}}\Scripts\activate.bat`
|
||||
|
||||
- 退出虚拟环境:
|
||||
|
||||
`deactivate`
|
Reference in New Issue
Block a user