Installing and getting to know the new PyScripter IDE for use with the Python 2.7.1 or Python 3.8 programming language. This is a small beginner’s guide. We will be working in the Windows operating system.
Find out the Windows version
Before installing Python, we have to clarify the Windows version – 64-bit or 32-bit.
You can do it like this:
- Click the Start button and click Settings.
- Then go to System and then About System.
- Your system type will display 64 bit or 32 (see image below)
- Fix the version so that further at all stages the versions of the programs fit the OS.
In Windows 7, you can see the OS version like this:
- Click “Start”
- We find in the right panel “Computer”
- Right-click on “Computer” and select “Properties”
- We see the OS version (see image below)
Next, we need to download Python. At this step, many questions arise, since there are many programs for the 2nd version of the Python programming language (for example, 2.7.1). The new stable version is 3.8.2.
For beginners, those who are just coming to Python, you can safely install the latest stable version. If you need to use 2.7. *, You should download the corresponding version.
Don’t forget to download the correct version for your Windows version (64 or 32 bits). All versions of Python for Windows can be downloaded from the official website.
- Go to the Python website.
- Scroll down the page.
- Select the required version (2.7. * Or 3.8. *).
- Choose the installer “Windows x86-64” for 64-bit machines or “Windows x86” for 32-bit machines.
Once you’ve downloaded Python, let’s proceed with installing it.
- Run the .exe and be sure to check the box “Add Python to PATH” (see image below), in English – “Add Python to PATH”.
- Then click “Install Now”.
- When finished, you can click “disable path length limit”.
You now have Python installed. You can close the installer.
Now it’s time to download the PyScripter IDE – an integrated development environment In which you will write code and run the interpreter.
To download our development environment, do the following:
- Go to the Sourceforge website.
- Click on the latest version (e.g. PyScripter-v3.6)
- Click on x64-setup (for 64-bit computers) or x86-setup (for 32-bit computers) version, for example PyScripter-3.6.3-x64-Setup.exe.
- We are waiting for the download of the installer.
You can also download the * .exe file of the PyScripter installer version 3.6.3 below in a zip archive from our website:
Unzip the file before installing.
Let’s go through the steps of our IDE installer. The installation is generally standard:
- Choose your language.
- Click Next.
- Select the installation location. By default, everything is fine here. Select “Next”.
- Click Next again on the Start folder screen.
- If you want to have a shortcut on the desktop, then you can select it from this screen. (see image below).
- Click “Next” and wait for the installation to complete.
Writing our first program
After you have successfully installed PyScripter, you can launch the PyScripter IDE and write your first program.
- Go to your desktop and double click the PyScripter icon.
- It should open without error. If not, then there are usually two options:
– you’ve probably installed 64-bit Python with 32-bit PyScripter (or vice versa);
– you have installed PyScripter, but DON’T INSTALL Python itself.
Now let’s write your first program.
We erase the code in the main editor screen:
def main(): pass if __name__ == '__main__': main()
Next, we type the classic hello world output program:
print ( 'Hello World!')
Then press the green “Run” button in the top row of control icons to start your program.
You will see that the interpreter has output your text below in the console.
You can issue commands in the console and receive responses. For example, typing “2 + 2” and pressing “Enter” will give you the answer 4.
That’s all. We installed Python, the PyScript development environment, and wrote the first program. Then there is only boundless fantasy.