Python interpreter is not installed in Windows by default. So we have to download and install Python.
Setting up a Python environment in Windows
How to do it...
We can download the Python from the official website and install it in your system. Execute the following steps:
- Go to the official website of Python (http://python.org/download/) and download the latest version of Windows MSI installer.
- Run the installer.
- You can select the option to Install launcher for all users (recommended) and click Install Now to finish the installation.
![](https://static.packt-cdn.com/products/9781784399771/graphics/assets/fd83623d-40e4-44f9-a7f9-218284bdb65b.png)
- After installation, it would be better if you could add the default Python directories of your version to the PATH.
If you have installed Python in C:\Python36\, you should add the following...