Difference between revisions of "Virtualenv"
Jump to navigation
Jump to search
(Created page with " pip install virtualenv virtualenv my_new_enviroment source my_new_enviroment/bin/activate deactivate {{Python}}") Tags: Mobile web edit, Mobile edit |
|||
(27 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lowercase}} | |
− | + | https://virtualenv.pypa.io/en/latest/ | |
− | |||
− | |||
+ | * Installation: | ||
+ | :: <code>[[pip3 install virtualenv]]</code> | ||
+ | :: <code>[[pip3 install virtualenv --user]]</code> | ||
+ | * Help: <code>[[virtualenv --help]]</code> | ||
− | {{Python}} | + | Creation: |
+ | |||
+ | * <code>[[virtualenv]] my_new_enviroment</code> | ||
+ | * <code>[[virtualenv my_new_env/venv]]</code> | ||
+ | or | ||
+ | * <code>python3 -m venv /path/to/new/virtual/environment</code> | ||
+ | or | ||
+ | * <code>python3 -m venv ./</code> | ||
+ | |||
+ | To activate new enviroment: | ||
+ | [[source]] my_new_enviroment/bin/[[activate]] | ||
+ | [[deactivate]] | ||
+ | |||
+ | == Related terms == | ||
+ | * <code>[[error: externally-managed-environment]]</code> | ||
+ | * <code>[[venv]]</code> | ||
+ | * <code>[[virtualenv venv]]</code> | ||
+ | * <code>[[pip list]]</code> | ||
+ | * [[Pipenv]] | ||
+ | * <code>[[pipx]]</code> | ||
+ | * <code>[[pipenv shell]]</code> | ||
+ | |||
+ | == See also == | ||
+ | * {{venv}} | ||
+ | * {{Python}} | ||
+ | |||
+ | [[Category:Python]] |
Latest revision as of 04:56, 6 June 2024
https://virtualenv.pypa.io/en/latest/
- Installation:
- Help:
virtualenv --help
Creation:
virtualenv my_new_enviroment
virtualenv my_new_env/venv
or
python3 -m venv /path/to/new/virtual/environment
or
python3 -m venv ./
To activate new enviroment:
source my_new_enviroment/bin/activate deactivate
Related terms[edit]
See also[edit]
virtualenv
,venv
,.venv
,.venv/
,pip3 install virtualenv
,virtualenv --help
- Python, PIP, GIL, Flask, Django, Marshmallow,
def
, logging, Pandas, Numpy, AWS Chalice,import
,from
,tuple
,list
, Python exceptions,virtualenv
,.append
,pytz
,TZ
,print
,python3 -c
,os
, PEP, Python Institute, Methods: Dunder methods, Flake8, Python collections, Function decorators in Python, Click python library, Python module, Flower,kwargs
, Black (Python), Python list structure, Mypy,variables
, Casting,try:
, pydoc, argparse, Anaconda,pyenv, setup.py, python3 --version, python3 --help
, Data Classes, raise
Advertising: