It’s not recommended to change it because some core apps depend on it. The system default Python3 is Python3.10. Then you may use command below to use pip install: pip3.11 install PACKAGE NOTE: You need python3-pip and python3.x-distutils to make the previous pip commands work! Install the former via sudo apt install python3-pip command. Or, add a shortcut via command: alias pip3.11="python3.11 -m pip" But, you may simply use the command below to install a package via Pip ( replace 3.11 to yours Python version): python3.11 -m pip install PACKAGE It does not install pip separately for each version. To verify Python versions, use commands python3.x -version: Depends on which version you installed, simply run python3.8 or python3.11 in terminal will start the IDE. The PPA installs the Python packages directly in your PATH (“/usr/bin”). After adding the PPA, simply run the command below to install certain python version as you want (e.g., v3.11): sudo apt install python3.11 python3.11-distutils Replace version number in command, e.g., python3.8 and python3.8-distutils for Python 3.8 Type user password when it asks (no visual feedback) for sudo authentication. When it opens, run the command below to add the PPA: sudo add-apt-repository ppa:deadsnakes/ppa Firstly, press Ctrl+Alt+T on keyboard to open terminal. Add PPA & Install certain Python editionġ. With it, you may install Python 3.12(Dev), Python 3.11, Python 3.9, Python 3.8, and Python 3.7 as easy as few commands. There’s a trustworthy PPA has been maintaining the Python packages for Ubuntu LTS for quite a few years. Option 1: Install recent Python versions via PPA 3.8, 3.7, 3.6 and other versions step by step. For software developers need to test app with different Python editions, or those have apps that requires specific Python edition. This simple tutorial shows how to install different version of Python programming language and set default in Ubuntu 22.04.
0 Comments
Leave a Reply. |