Lines Matching refs: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
35 Python interpreter a virtual environment will be based on.
46 .. note:: A virtual environment is a Python environment such that the Python
52 A virtual environment is a directory tree which contains Python executable
53 files and other files which indicate that it is a virtual environment.
57 environment is active, they install Python packages into the virtual
58 environment without needing to be told to do so explicitly.
60 When a virtual environment is active (i.e., the virtual environment's Python
63 environment, whereas :attr:`sys.base_prefix` and
64 :attr:`sys.base_exec_prefix` point to the non-virtual environment Python
65 installation which was used to create the virtual environment. If a virtual
66 environment is not active, then :attr:`sys.prefix` is the same as
68 :attr:`sys.base_exec_prefix` (they all point to a non-virtual environment
71 When a virtual environment is active, any options that change the
74 environment.
76 When working in a command shell, users can make a virtual environment active
77 by running an ``activate`` script in the virtual environment's executables
79 virtual environment's directory for executables to the ``PATH`` environment
81 circumstances to activate a virtual environment—scripts installed into
83 environment's Python interpreter. This means that the script will run with
89 needing to be any reference to its virtual environment in ``PATH``.
100 mechanisms for third-party virtual environment creators to customize environment
111 site-packages should be available to the environment (defaults to ``False``).
114 any existing target directory, before creating the environment.
120 environment with the running Python - for use when that Python has been
124 installed in the virtual environment. This uses :mod:`ensurepip` with
127 * ``prompt`` -- a String to be used after virtual environment is activated
128 (defaults to ``None`` which means directory name of the environment would
137 Creators of third-party virtual environment tools will be free to use the
146 virtual environment. The ``create`` method will either create the
147 environment in the specified directory, or raise an appropriate
155 Create a virtualized Python environment in a directory.
156 env_dir is the target directory to create an environment in.
171 Creates the environment directory and all necessary directories, and
175 specified to allow operating on an existing environment directory.
179 Creates the ``pyvenv.cfg`` configuration file in the environment.
183 Creates a copy or symlink to the Python executable in the environment.
191 environment.
196 implementations to pre-install packages in the virtual environment or
211 assist in installing custom scripts into the virtual environment.
217 directory in the environment. The contents of "common" and the
221 * ``__VENV_DIR__`` is replaced with the absolute path of the environment
224 * ``__VENV_NAME__`` is replaced with the environment name (final path
225 segment of environment directory).
227 * ``__VENV_PROMPT__`` is replaced with the prompt (the environment
234 environment's executable.
236 The directories are allowed to exist (for when an existing environment
254 subclass which installs setuptools and pip into a created virtual environment::
268 easy_install other packages into the created virtual environment.
271 created virtual environment.
273 virtual environment.
299 virtual environment being created.
301 :param context: The information for the virtual environment
336 # Download script into the virtual environment's binaries folder
348 # Install in the virtual environment
367 Install setuptools in the virtual environment.
369 :param context: The information for the virtual environment
383 Install pip in the virtual environment.
385 :param context: The information for the virtual environment
410 'virtual environment.')
414 "virtual environment.")
418 "environment.")
421 help='Give the virtual environment access to the '
434 'virtual environment '
437 'environment creation.')
440 'environment directory to '