2023-05-01 10:51:40 +01:00
|
|
|
# venv
|
|
|
|
|
|
|
|
> Create lightweight virtual environments in python.
|
|
|
|
> More information: <https://docs.python.org/3/library/venv.html>.
|
|
|
|
|
pages*: fix brand and technical names (#12145)
* pages*: fix Python, Java, pacman, apt, *zip*, xz, tar, git, RPM and grep names
* pages*: fix brand and technical names
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
* fluxctl, gitmoji, in-toto-run, osv-scanner: replace `git` with Git
* bzegrep: enclose egrep with backticks
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-force-clone: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* gitwatch: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* hub-init: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* pages.*: use Linux instead of GNU/Linux
---------
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-30 04:46:32 +00:00
|
|
|
- Create a Python virtual environment:
|
2023-05-01 10:51:40 +01:00
|
|
|
|
|
|
|
` 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`
|