• Home
  • Raw
  • Download

Lines Matching full:environment

20 site directories.  Each virtual environment has its own Python binary (allowing
29 Python interpreter a virtual environment will be based on.
40 .. note:: A virtual environment is a Python environment such that the Python
46 A virtual environment is a directory tree which contains Python executable
47 files and other files which indicate that it is a virtual environment.
51 environment is active, they install Python packages into the virtual
52 environment without needing to be told to do so explicitly.
54 When a virtual environment is active (i.e., the virtual environment's Python
57 environment, whereas :attr:`sys.base_prefix` and
58 :attr:`sys.base_exec_prefix` point to the non-virtual environment Python
59 installation which was used to create the virtual environment. If a virtual
60 environment is not active, then :attr:`sys.prefix` is the same as
62 :attr:`sys.base_exec_prefix` (they all point to a non-virtual environment
65 When a virtual environment is active, any options that change the
68 environment.
70 When working in a command shell, users can make a virtual environment active
71 by running an ``activate`` script in the virtual environment's executables
73 virtual environment's directory for executables to the ``PATH`` environment
75 circumstances to activate a virtual environment—scripts installed into
77 environment's Python interpreter. This means that the script will run with
83 needing to be any reference to its virtual environment in ``PATH``.
94 mechanisms for third-party virtual environment creators to customize environment
105 site-packages should be available to the environment (defaults to ``False``).
108 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
134 Creators of third-party virtual environment tools will be free to use the
143 virtual environment. The ``create`` method will either create the
144 environment in the specified directory, or raise an appropriate
152 Create a virtualized Python environment in a directory.
153 env_dir is the target directory to create an environment in.
168 Creates the environment directory and all necessary directories, and
172 specified to allow operating on an existing environment directory.
176 Creates the ``pyvenv.cfg`` configuration file in the environment.
181 the environment. On a POSIX system, if a specific executable
189 environment.
194 implementations to pre-install packages in the virtual environment or
199 assist in installing custom scripts into the virtual environment.
205 directory in the environment. The contents of "common" and the
209 * ``__VENV_DIR__`` is replaced with the absolute path of the environment
212 * ``__VENV_NAME__`` is replaced with the environment name (final path
213 segment of environment directory).
215 * ``__VENV_PROMPT__`` is replaced with the prompt (the environment
222 environment's executable.
224 The directories are allowed to exist (for when an existing environment
242 subclass which installs setuptools and pip into a created virtual environment::
256 easy_install other packages into the created virtual environment.
259 created virtual environment.
261 virtual environment.
287 virtual environment being created.
289 :param context: The information for the virtual environment
324 # Download script into the virtual environment's binaries folder
336 # Install in the virtual environment
355 Install setuptools in the virtual environment.
357 :param context: The information for the virtual environment
371 Install pip in the virtual environment.
373 :param context: The information for the virtual environment
398 'virtual environment.')
402 "virtual environment.")
406 "environment.")
409 help='Give the virtual environment access to the '
422 'virtual environment '
425 'environment creation.')
428 'environment directory to '