First, we will install Python 3. To do this, download the installer from the Python website at http://www.python.org/downloads/ and click on The “Download Python 3.xy”.
Save the installer to your hard disk.
Launch the installer that has just been downloaded.
Choose “Execute” when the security warning.
Python 3 is now installed.
2.2. Launching the Python 3 Interpreter on Windows 7
In order to verify that Python 3 is installed and working properly, we will launch the Python interpreter (or shell ).
To do this, search for “Python” in the Start menu and launch “IDLE (Python GUI)”.
You must arrive on a window similar to this one:
You can enter a command such as “4 + 8”, then press “Enter” to get the result, as in the next capture.
You now have a functional Python 3 runtime environment.
You can close this window.
2.2.1. Integrated Development Environment (IDE): PyCharm Community Edition
2.4. Installing and Configuring PyCharm Community Edition on Windows 7
First, go to the software download page: http://www.jetbrains.com/pycharm/download/ .
Click “Download Community” to download the Community version of PyCharm.
Save the installation program.
Launch the installer that has just been downloaded, and click “Run” on the security warning.
Check the checkmark to put a shortcut on the desktop, and click “Next>”.
Click “Install” to install the software.
Click “Finish” to complete the installation.
Launch PyCharm using the shortcut on the desktop (or from the Start menu).
Since this is the first launch of PyCharm, we will proceed to its configuration.
Click on “Project Interpreter” and then on “Configure Interpreters”.
Click the “+” to the right, then select the Python interpreter to use.
The interpreter is now known to the development environment.
Click the arrow to return to the Home screen.
2.5. First Python 3 project with PyCharm Community Edition
We will create a project containing a Python program and run this program to verify that everything works.
On the PyCharm home screen, click “Create New Project”.
Enter a name for the new project and click “OK.”
Uncheck “Show Tips on Startup” (under if you want to see this window each time), and click “Close”.
We will add a Python file to our project. To do this, right click on the project name, then click “New” and then “Python File”.
Enter the file name.
Edit the file by adding a print command, for example, as in the previous capture.
We will run this Python program. To do this, we need to add a run configuration to our project. Right click on the project name and click on ‘Run’ test ‘”. This will execute ( run ) the file we were working on ( test.py ).
At the bottom appeared a new frame containing the result of the execution of our program.
Now we can use the green arrow at the top right to restart the same file.