![]() ![]() We will use this to install Python packages in our python projects. ![]() This is the defacto and recommended package manager for Python. Management of Python packages is handled by PIP. ![]() With that out of the way, let's focus on managing Python Packages. python3 -VĪs of writing this guide Python 3.10.4 which is the default version that ships with Ubuntu 22.04. When the upgrade of the packages is complete, be sure to confirm the version of python installed on your system. To upgrade the packages, run the command: sudo apt upgrade If you recently upgraded all the packages, this is not necessarily required. To list all packages with pending upgrades, run the following command: sudo apt -list upgradable Next, upgrade all the installed packages on your system including security updates. sudo apt-get install software-properties-common Next, install the software-properties-common package. So update Ubuntu as follows: sudo apt update To set up Python3, it's prudent to, first and foremost, ensure that the local package index is up to date. The base installation of almost all Linux distributions now comes with Python preinstalled. Ubuntu 20.04 and later versions of Ubuntu systems such as Ubuntu 22.04 come with Python3 already preinstalled.
0 Comments
Leave a Reply. |