Install Python¶
All we need to start digging into Python is Python 3.6, and a code editor.
Please follow the Python installation instructions for the operating system of your choice and we’ll get started!
Text Editor¶
In addition to Python, you’ll want a text editor to write code in.
For new programmers, I recommend using Atom.
If you have a different text editor you’d like to use, you might want to make sure it works well with Python.
Windows¶
Please visit the Python 3.6 page and scroll down to the list of files. Download one of the installer files for Windows - we had good luck with the web-based installer that downloads the parts of Python it needs as it is installing. Run the installer, and on the first screen of the installer, check “Add Python 3.6 to PATH”. Then click “Install Now” and follow the instructions to install Python.
To verify that Python 3.6 installed correctly, open up your command prompt (Start -> Run -> cmd) and run:
> py -3.6 --version
Python 3.6.1
Note
See the Windows Getting Started documentation for more information if you have any questions.
Mac¶
Please visit Python 3.6 page and download the 64-bit Python installer. After downloading python-3.6.1-macosx10.6.pkg
, run it to install Python.
Verify that Python 3.6 was installed correctly by opening the Terminal application and running:
$ python3.6 --version
Python 3.6.1
Linux¶
It is very likely you already have Python installed. To check that you have Python installed, open a console and type:
$ python3.6 --version
Python 3.6.1
If you do not have Python 3.6 installed, you should install it using your Linux distribution’s package manager.
To install Python 3.6 on Ubuntu:
$ sudo apt-get install python3.6
To install Python 3.6 on Fedora (up to 21):
$ sudo yum install python3.6
To install Python 3.6 on Fedora (22+):
$ sudo dnf install python3.6