A Word About “System Python”īecause Python is an essential part of Linux distributions (i.e., used by the system itself), the default version and availability of Python is generally fixed until the next upgrade of the overall operating system. The following subsections describe the Python version installed on our systems and how to build a particular version from source. The end-of-life (EOL) for Python 2 was January 1, 2020. If you still have code written for Python 2, we recommend investing the time to port it to Python 3 as soon as feasible. Because the “System Python” (more below) on the CS systems is a relatively old Python 3.6 (but with back-ported security patches) you may wish/need to build your own local copy of your preferred Python version. Which version of Python should I use? What version is installed?įor new development, use Python 3.7 or later. This allows end-users to install and manage their own set of packages that are independent of those provided by the system or used by other projects.īefore creating a Python virtual environment, we need to choose the Python version. In a nutshell, Python virtual environments help decouple and isolate Python installs and associated pip packages. To address this problem, Python virtual environments were developed. This led to issues when different projects required different versions of packages. The original design of Python and its packaging system puts installed packages alongside the Python interpreter 1 in the file system furthermore, only a single version of a given package can be installed with a given Python interpreter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |