Environments and IDE setup for Python | PyCharm
By this time, you must have known all the necessary GK about this cool programming language. Now we are gonna start with some seriously cool stuff. Yes! You got it right. It’s time to do some python programming in IDE for Python.
But before that, we need to set up some environment variables, paths and install an IDE to do python programming.
So, what is exactly an IDE?
An IDE stands for Integrated Development Environment. As the name suggests, it is a piece of software that recreates the environment of a particular language in your system and within it comes to its own compiler or interpreter. In short, to write your code, to process it into machine-level instructions and to get the necessary output, everything is fitted under one hood.
Like any other language python too has got a large number of IDEs. Some of them fall under the general editors having a widget that will extend the functionality of the editor while the others are pure python IDEs. The pure python IDEs are:
- PyCharm: founded by JetBrains. Considered as the best IDE for Python with completely updated functional features of python. Available as paid as well as a free edition for Windows, Mac and Linux Distributions.
- Spyder: cross-platform open-sourced IDE basically focused on computer scientists, engineers, and data analysts. For advanced Users in Python Language.
- Thonny: The newly added IDE to python family. Claimed as the IDE for beginners, it has a very simple setup and is comparatively easy to use. Plus, it is already bundled with all the necessary pre-setup for any environment. The user has to simply download and install it.
Getting started with PyCharm IDE:
Now, you might be having this question: Why PyCharm? Why not Thonny?
There are two specific reasons why I too started with PyCharm as a beginner:
- Thonny IDE being completely new is prone to more bugs due to internal system issues and that might give different types of errors in different systems due to OS versions, the genuineness of OS and Path setting for environment variables.
- PyCharm IDE gives a unique feel and speed of programming than any other IDE.
It’s not mandatory to follow this idea blindly. If you are curious, I would encourage you to do your research regarding other IDEs and try out your own way!
Installation
- Download Pycharm Community Edition. It is forever free and open source and will act as a great beginner tool to learn python.
- For Windows, go to: Pycharm for Windows
- For Linux, go to: Pycharm for Linux
- For Mac: Pycharm for Mac
- After downloading, simply install the .exe file and run the IDE.
NOTE: If you have a completely new system, then I suggest you start with installing JDK and JRE from ORACLE and then proceed for the installation of PyCharm. In certain PCs, it works perfectly fine, but as I said due to version difference or OS genuineness some issues might creep in automatic installation of PyCharm and you need to have the JDK and JRE pre-installed.
The choice I made when I installed the software:
1. I have a 64 bit OS, so I did not select the last choice. Please tick it if you have a 32-bit OS. Choose your launcher Accordingly.
2. Choose the theme as per your comfort.
3. Skip the additional plugin downloads as of now. We will work on it once we get our hands dirty with programming.
4. Lastly, the software would look something like this:
Voila! You have your environment ready to program now. Follow the next steps to get started with your python programming.