mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-14 18:35:49 +02:00
venv: add page (#10078)
* venv: add page --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Franco Gil <45880759+realFranco@users.noreply.github.com>
This commit is contained in:
parent
415ebf8388
commit
993fd046fe
1 changed files with 20 additions and 0 deletions
20
pages/common/venv.md
Normal file
20
pages/common/venv.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# venv
|
||||||
|
|
||||||
|
> Create lightweight virtual environments in python.
|
||||||
|
> More information: <https://docs.python.org/3/library/venv.html>.
|
||||||
|
|
||||||
|
- Create a python virtual environment:
|
||||||
|
|
||||||
|
` python -m venv {{path/to/virtual_environment}}`
|
||||||
|
|
||||||
|
- Activate the virtual environment (Linux and Mac OS):
|
||||||
|
|
||||||
|
`source {{path/to/virtual_environment}}/bin/activate`
|
||||||
|
|
||||||
|
- Activate the virtual environment (Windows):
|
||||||
|
|
||||||
|
`{{path\to\virtual_environment}}\Scripts\activate.bat`
|
||||||
|
|
||||||
|
- Deactivate the virtual environment:
|
||||||
|
|
||||||
|
`deactivate`
|
Loading…
Add table
Reference in a new issue