Ubuntu/Python/3.14: Difference between revisions

From Omnia
< Ubuntu‎ | Python
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 9: Line 9:
  python3.14 --version
  python3.14 --version


For development, virtuan env, and pip:
For development, virtuan env
  sudo apt install python3.14-dev python3.14-venv python3.14-pip
  sudo apt install python3.14-dev python3.14-venv


For a more complete installation including the Tkinter IDE and other utilities, you can use:
For a more complete installation including the Tkinter IDE and other utilities, you can use:
Line 17: Line 17:
Pip:
Pip:
  curl -sS https://bootstrap.pypa.io/get-pip.py | python3.14
  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

Latest revision as of 23:04, 5 February 2026

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