Ubuntu/Python/3.14: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
sudo apt update | sudo apt update | ||
sudo apt install python3.14 | sudo apt install python3.14 | ||
# should also install: | |||
sudo apt install python3.14-dev python3.14-venv | |||
python3.14 --version | python3.14 --version | ||
Latest revision as of 21:25, 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 # should also install: sudo apt install python3.14-dev python3.14-venv
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