You can find out more about pip by using the following commands. You can list the Python packages with pip. Use the following command to uninstall packages when needed. You can also upgrade the installed packages with pip. To install Python packages through pip, run the following command with your package name. Run the pip2 installation script to install pip2. Use the following curl command to download the pip2 installation script. Next, install Python 2 on your system with the following apt command. Enable Universe Repositoryįirst, you need to enable the Universe repository with the following apt-get command. While Python 2 is no longer supported, it is still used in some cases, such as virtual environments. Python 3 is the only version that comes by default in Ubuntu. Run the following command to check the version of pip3. You can install pip for Python 3 with the following command. Update the system to make sure repositories are up to date using the following apt command. See the current Python in use with the following command. Note: Despite the fact that the commands used in this tutorial are particular to the Ubuntu operating system, all of the approaches are applicable to any Linux-based machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |