REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 4.27 KB
Close
//opt/alt/python37/share/doc/alt-python-virtualenv/docs/index.rst
Text
Base64
Virtualenv ========== .. image:: https://img.shields.io/pypi/v/virtualenv?style=flat-square :target: https://pypi.org/project/virtualenv/#history :alt: Latest version on PyPI .. image:: https://img.shields.io/pypi/implementation/virtualenv?style=flat-square :alt: PyPI - Implementation .. image:: https://img.shields.io/pypi/pyversions/virtualenv?style=flat-square :alt: PyPI - Python Version .. image:: https://readthedocs.org/projects/virtualenv/badge/?version=latest&style=flat-square :target: https://virtualenv.pypa.io :alt: Documentation status .. image:: https://img.shields.io/discord/803025117553754132 :target: https://discord.gg/pypa :alt: Discord .. image:: https://img.shields.io/pypi/dm/virtualenv?style=flat-square :target: https://pypistats.org/packages/virtualenv :alt: PyPI - Downloads .. image:: https://img.shields.io/pypi/l/virtualenv?style=flat-square :target: https://opensource.org/licenses/MIT :alt: PyPI - License .. image:: https://img.shields.io/github/issues/pypa/virtualenv?style=flat-square :target: https://github.com/pypa/virtualenv/issues :alt: Open issues .. image:: https://img.shields.io/github/issues-pr/pypa/virtualenv?style=flat-square :target: https://github.com/pypa/virtualenv/pulls :alt: Open pull requests .. image:: https://img.shields.io/github/stars/pypa/virtualenv?style=flat-square :target: https://pypistats.org/packages/virtualenv :alt: Package popularity ``virtualenv`` is a tool to create isolated Python environments. Since Python ``3.3``, a subset of it has been integrated into the standard library under the `venv module <https://docs.python.org/3/library/venv.html>`_. The ``venv`` module does not offer all features of this library, to name just a few more prominent: - is slower (by not having the ``app-data`` seed method), - is not as extendable, - cannot create virtual environments for arbitrarily installed python versions (and automatically discover these), - is not upgrade-able via `pip <https://pip.pypa.io/en/stable/installing/>`_, - does not have as rich programmatic API (describe virtual environments without creating them). The basic problem being addressed is one of dependencies and versions, and indirectly permissions. Imagine you have an application that needs version ``1`` of ``LibFoo``, but another application requires version ``2``. How can you use both these libraries? If you install everything into your host python (e.g. ``python3.8``) it's easy to end up in a situation where two packages have conflicting requirements. Or more generally, what if you want to install an application *and leave it be*? If an application works, any change in its libraries or the versions of those libraries can break the application. Also, what if you can't install packages into the global ``site-packages`` directory, due to not having permissions to change the host python environment? In all these cases, ``virtualenv`` can help you. It creates an environment that has its own installation directories, that doesn't share libraries with other virtualenv environments (and optionally doesn't access the globally installed libraries either). Useful links ------------ **Related projects, that build abstractions on top of virtualenv** * :pypi:`virtualenvwrapper` - a useful set of scripts for creating and deleting virtual environments * :pypi:`pew` - provides a set of commands to manage multiple virtual environments * :pypi:`tox` - a generic virtualenv management and test automation command line tool, driven by a ``tox.ini`` configuration file * :pypi:`nox` - a tool that automates testing in multiple Python environments, similar to tox, driven by a ``noxfile.py`` configuration file **Tutorials** * `Corey Schafer tutorial <https://www.youtube.com/watch?v=N5vscPTWKOk>`_ on how to use it * `Using virtualenv with mod_wsgi <http://code.google.com/p/modwsgi/wiki/VirtualEnvironments>`_ **Presenting how the package works from within** * `Bernat Gabor: status quo of virtual environments <https://www.youtube.com/watch?v=o1Vue9CWRxU>`_ * `Carl Meyer: Reverse-engineering Ian Bicking's brain: inside pip and virtualenv <http://pyvideo.org/video/568/reverse-engineering-ian-bicking--39-s-brain--insi>`_ .. comment: split here .. toctree:: :hidden: installation user_guide cli_interface extend development changelog
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
changelog
DIR
-
drwxr-xr-x
2024-03-03 22:53:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
_static
DIR
-
drwxr-xr-x
2024-03-03 22:53:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
changelog.rst
47.29 KB
lrw-r--r--
2022-01-02 15:54:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cli_interface.rst
3.31 KB
lrw-r--r--
2022-01-02 15:54:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
conf.py
2.44 KB
lrw-r--r--
2022-01-02 15:54:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
development.rst
9.59 KB
lrw-r--r--
2022-01-02 15:54:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
extend.rst
3.60 KB
lrw-r--r--
2022-01-02 15:54:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.rst
4.27 KB
lrw-r--r--
2022-01-02 15:54:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
installation.rst
5.72 KB
lrw-r--r--
2022-01-02 15:54:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
render_cli.py
9.12 KB
lrw-r--r--
2022-01-02 15:54:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
user_guide.rst
15.25 KB
lrw-r--r--
2022-01-02 15:54:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).