Ubuntu/Python/3.14: Difference between revisions

From Omnia
< Ubuntu‎ | Python
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
Add Deadsnakes and install python 3.14
Add Deadsnakes and install python 3.14
  sudo add-apt-repository ppa:deadsnakes/ppa
  sudo add-apt-repository ppa:deadsnakes/ppa
  # respond to prompts
  sudo apt update
  sudo apt update
  sudo apt install python3.14
  sudo apt install python3.14

Revision as of 21:24, 11 March 2026

Dependency:

sudo apt install software-properties-common

Add Deadsnakes and install python 3.14

sudo add-apt-repository ppa:deadsnakes/ppa
  # respond to prompts
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