python -versionĮxample output: Python 2.7.18 Install Python 3Īs stated, Python 3 should be installed by default, and if missing, you can re-install using the following command. Next, proceed to the Install PIP and install the corresponding version to your Python installation.Ĭonfirm the installation, or if python or python2 is installed, to begin with by checking the version build. To install Python2, which will use PIP2 later, use the following command. However, for users that require Python 2, this can be installed with either the python or python2 command. Update your Debian operating system to make sure all existing packages are up to date: sudo apt update & sudo apt upgrade -y Install Python 2īy default, Debian 11 has Python 3 installed. The only drawback of using PIP through PyPI is that the packages can take longer to install. For those unaware, PyPI is hosted by Python Software Foundation, a package manager that only deals with python packages that are often more updated than those hosted by Canonical through APT. APT is faster however is more outdated where PIP is used to download and install packages directly from PyPI. This is a choice that every user must make. PIP2 OR PIP3 VS APT Package ManagerĪ question that is asked regularly is whether we should use APT or PIP. It is highly recommended to use Python 3 and PIP3, and you should be upgrading to this as soon as possible. To sum it up, PIP2 is a soft link for a particular installer running an older python version, and PIP3 is an updated version of pip used basically for python 3+. For those new to the python programming language altogether, you may wonder what the difference between PIP2 and PIP3 is.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |