The majority of machine learning tools and programs make heavy use of Python. This page will go through the installation process, as Python is necessary to run almost every program you might need.
The easiest way to install Python and properly configure it on Windows is through a commandline package manager such as winget or Scoopwinget
is the easiest to use as it comes by default in every Windows 10 and 11 installation, but we'll go through each method, including GUI, for brevity. If you're on Windows 7, you should install via the official installer below.
winget install -e --id Python.Python.3.10
python --version
inside PowerShell to confirm the installation.Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex
versions
bucket to download specific versions of Python:scoop install git
scoop bucket add versions
scoop install versions/python310
python --version
.If you're on Windows 7, the highest supported version is 3.8. Please download this executable instead.
Add Python 3.10 to PATH
option on the first page of the installer wizard.python --version
.Python comes pre-installed on every Linux distro, but it might be slightly outdated and may not contain pip
. It's recommended to use a version management software to install Python, and confine all activities within a virtual environment. This guide will go through the process of installing Python via asdf.
asdf
.asdf plugin add python
asdf install python 3.10.9
asdf global python 3.10.9
python --version
.