PYTHON

Installing Python

Date Published:
Last Modified:

Overview

Python can be installed onto operating systems in a variety of different ways.

Windows

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:

C:\Users\<username>\AppData\Local\Programs\Python\Python<version>\

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 PATH:

C:\Users\<username>\AppData\Local\Programs\Python\Python<version>\Scripts\

The Anaconda distribution is also contains the Python interpreter.

CentOS

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):

$ sudo yum install libffi-devel

and then try building Python again.


Related Content:

Tags:

comments powered by Disqus