- Use python3
python3 --version - Make python mean python3
echo 'alias python=python3' >> ~/.zshrc source ~/.zshrc
Check it worked
- Check it works
python --version
- Use python3
python3 --version - Make python mean python3Needs sudo
sudo apt install -y python-is-python3
Check it worked
- Check it works
python --version
- Install Python
winget install Python.Python.3.13If typing python opens the Microsoft Store, switch off python.exe and python3.exe in Settings, Apps, Advanced app settings, App execution aliases.
- Use the Python launcher
py --version
Check it worked
- Check it works
python --versionOpen a new PowerShell window first.