Lines Matching full:environment
20 site directories. Each virtual environment has its own Python binary (which
21 matches the version of the binary that was used to create this environment) and
30 …python.org/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment>`__
41 .. note:: A virtual environment is a Python environment such that the Python
47 A virtual environment is a directory tree which contains Python executable
48 files and other files which indicate that it is a virtual environment.
52 environment is active, they install Python packages into the virtual
53 environment without needing to be told to do so explicitly.
55 When a virtual environment is active (i.e., the virtual environment's Python
58 environment, whereas :attr:`sys.base_prefix` and
59 :attr:`sys.base_exec_prefix` point to the non-virtual environment Python
60 installation which was used to create the virtual environment. If a virtual
61 environment is not active, then :attr:`sys.prefix` is the same as
63 :attr:`sys.base_exec_prefix` (they all point to a non-virtual environment
66 When a virtual environment is active, any options that change the
69 virtual environment.
71 When working in a command shell, users can make a virtual environment active
72 by running an ``activate`` script in the virtual environment's executables
74 shell-dependent), which prepends the virtual environment's directory for
75 executables to the ``PATH`` environment variable for the running shell. There
77 environment; scripts installed into virtual environments have a "shebang"
78 line which points to the virtual environment's Python interpreter. This means
84 without there needing to be any reference to its virtual environment in
96 mechanisms for third-party virtual environment creators to customize environment
107 site-packages should be available to the environment (defaults to ``False``).
110 any existing target directory, before creating the environment.
116 environment with the running Python - for use when that Python has been
120 installed in the virtual environment. This uses :mod:`ensurepip` with
123 * ``prompt`` -- a String to be used after virtual environment is activated
124 (defaults to ``None`` which means directory name of the environment would
139 Creators of third-party virtual environment tools will be free to use the
146 Create a virtual environment by specifying the target directory
148 virtual environment. The ``create`` method will either create the
149 environment in the specified directory, or raise an appropriate
157 Create a virtualized Python environment in a directory.
158 env_dir is the target directory to create an environment in.
173 Creates the environment directory and all necessary directories, and
177 specified to allow operating on an existing environment directory.
181 Creates the ``pyvenv.cfg`` configuration file in the environment.
185 Creates a copy or symlink to the Python executable in the environment.
193 environment.
198 ``setuptools``) in the environment. This is done by shelling out to the
199 ``pip`` executable in the environment.
206 implementations to pre-install packages in the virtual environment or
221 assist in installing custom scripts into the virtual environment.
227 directory in the environment. The contents of "common" and the
231 * ``__VENV_DIR__`` is replaced with the absolute path of the environment
234 * ``__VENV_NAME__`` is replaced with the environment name (final path
235 segment of environment directory).
237 * ``__VENV_PROMPT__`` is replaced with the prompt (the environment
244 environment's executable.
246 The directories are allowed to exist (for when an existing environment
269 subclass which installs setuptools and pip into a created virtual environment::
283 easy_install other packages into the created virtual environment.
286 created virtual environment.
288 virtual environment.
314 virtual environment being created.
316 :param context: The information for the virtual environment
351 # Download script into the virtual environment's binaries folder
363 # Install in the virtual environment
382 Install setuptools in the virtual environment.
384 :param context: The information for the virtual environment
398 Install pip in the virtual environment.
400 :param context: The information for the virtual environment
425 'virtual environment.')
429 "virtual environment.")
433 "environment.")
436 help='Give the virtual environment access to the '
449 'virtual environment '
452 'environment creation.')
455 'environment directory to '