Ubuntu/Python/3.14

From Omnia
< Ubuntu‎ | Python
Jump to navigation Jump to search

Dependency:

sudo apt install software-properties-common

Add Deadsnakes and install python 3.14

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.14
python3.14 --version

For development, virtuan env

sudo apt install python3.14-dev python3.14-venv

For a more complete installation including the Tkinter IDE and other utilities, you can use:

sudo apt install python3.14-full

Pip:

curl -sS https://bootstrap.pypa.io/get-pip.py | python3.14
python3.14 -m pip install pip --upgrade
python3.14 -m pip --version
python3.14 -m pip list

venv: (requires pip)

python3.14 -m venv -h
# check if pip is working
python3.14 -m ensurepip
  #   /usr/bin/python3.14: No module named ensurepip
  # if this fails with the above, install pip and python3.14-venv ^
cd ~ ; rm -rf .test-venv ; mkdir .test-venv ; cd .test-venv ; python3.14 -m venv venv