DEV Community

Automata
Automata

Posted on

Install Python 3.11

Update Ubuntu

sudo apt update
Enter fullscreen mode Exit fullscreen mode
sudo apt upgrade
Enter fullscreen mode Exit fullscreen mode

Import Python PPA

sudo add-apt-repository ppa:deadsnakes/ppa -y
Enter fullscreen mode Exit fullscreen mode
sudo apt update
Enter fullscreen mode Exit fullscreen mode

Install Python 3.11

sudo apt install python3.11
Enter fullscreen mode Exit fullscreen mode
python3.11 --version
Enter fullscreen mode Exit fullscreen mode

Install PIP with Python 3.11

Option 1

sudo apt install python3-pip
Enter fullscreen mode Exit fullscreen mode

Option 2

wget https://bootstrap.pypa.io/get-pip.py
Enter fullscreen mode Exit fullscreen mode
python3 get-pip.py
Enter fullscreen mode Exit fullscreen mode
python3 -m pip install --upgrade pip
Enter fullscreen mode Exit fullscreen mode
pip --version
Enter fullscreen mode Exit fullscreen mode

Top comments (0)