Python can be installed onto operating systems in a variety of different ways.
The easiest way is to visit https://www.python.org/downloads/ and download the web-based installer which will downloaded the needed components at install time.
You may have to add the
python.exe install location to your system
PATH manually. Python will typically be installed to:
when installed for a single user on Windows 10. You will also want to add the
Scripts\ folder so that you can call
pip from the command-line, so also add the following to your
The Anaconda distribution is also contains the Python interpreter.
Windows 10 introduced what I consider a really annoying “feature” called App Execution Aliases. What this means is that if you don’t have python installed on your system but try and execute
python.exe, Windows will jump in a load up the Windows Store to prompt you to download and install it. While good natured in principle, it causes many headaches as 3rd party software which tried to invoke python will not get the error message it expects.
You can disable App Execution Aliases for
python3.exe by searching for Managing App Execution Aliases in the Windows Search. Load up the settings window and deselect all versions of
You might get an error like shown below if you try and invoke a non-existent
python.exe when arguments are provided (Windows Store will NOT load in this case):
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
ModuleNotFoundError: No module named ‘_ctypes’
This is likely due to
libffi-dev (Debian-like) or
libffi-devel (RedHat-like) missing from your systems. Install with (on RedHat-like systems):
and then try building Python again.
This work is licensed under a Creative Commons Attribution 4.0 International License .
- Python Classes And Object Orientated Design
- Python Sets
- A Tutorial On geopandas
- Python And File Paths
- programming languages
- App Execution Aliases
- Windows 10