![]() ![]() For Python 3.3+ the built-in venv module is used, instead of the third-party virtualenv utility. virtualenv tool comes bundled with P圜harm, so the user doesn't need to install it. If application B requires a library be upgraded to version 3.0, this will not affect application A’s environment. The main purpose of virtual environments is to manage settings and dependencies of a particular project regardless of other Python projects. ![]() ![]() To resolve the earlier example of conflicting requirements, application A can have its own virtual environment with version 1.0 installed while application B has another virtual environment with version 2.0. The solution for this problem is to create a virtual environment, a self-contained directory tree that contains a Python installation for a particular version of Python, plus a number of additional packages.ĭifferent applications can then use different virtual environments. If application A needs version 1.0 of a particular module but application B needs version 2.0, then the requirements are in conflict and installing either version 1.0 or 2.0 will leave one application unable to run. This means it may not be possible for one Python installation to meet the requirements of every application. Python applications will often use packages and modules that don’t come as part of the standard library.Īpplications will sometimes need a specific version of a library, because the application may require that a particular bug has been fixed or the application may be written using an obsolete version of the library’s interface. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |