Best Python IDE, Complete Tutorial to setup Python With Pycharm
Python is getting more popular. And one of the biggest reason for its popularity, it is so simple, elegant and easy to learn. It has the huge scope and has more demand for Python developer in the IT industry.
It is claimed that the requirement for the skilled Python developers in the IT industry is still the major concern. Google, Quora, Dropbox, Yahoo Maps, Reddit, YouTube are the few giant companies working on Python projects. For sure, there is the great future for Python developer.
Let’s look at this tutorial, setup Python and configure best Python IDE and start learning Python.
If you are looking for career opportunities in the software industry or want to learn programming skills, starts fuelling Python skills. It will be paid off one day, for sure.
In this post, we see how to install and configure PyCharm as best Python IDE on Windows.
Software required to setup Python Environment on Windows:
- Python 3.6 or Python 2.7 (Latest version- you can choose any of the version as you are comfortable with)
- PyCharm IDE (Best Python IDE)
How to Install Python on Your System?
If you have Python already installed on your system, you can skip this step. And move to next step for installing PyCharm IDE.
Download latest version of Python from its official website. Mainly there are two Python stable and latest versions, one is Python 3.6 and other is python 2.7. You can download it from its official website Python.org.
If you are new to the Python programming, I would recommend using Python 3.6.
Once downloaded install it on the system.
You can also follow:
- Installing Python on Linux (Ubuntu/Fedora/CentOS…)
- Installing Python on Windows (getting started with Python And Running First Program)
If you are installing Python on Windows, you can skip links shared above. Instead, keep reading below.
I am demonstrating the installation of Python 3.4 here.
Double click on the Python executable file you have downloaded.
It saves in a
c://python34folder by default.
Note: If you are installing Python 2.7 then it gets installed in c://python27 folder. As directory name is created according to the version of Python, So it is possible to install multiple pythons on the same system. It does not create any conflict among multiple Python version installed on your system. And it works independently.
Click on “Next” button and complete the installation.
Write a simple program to test if Python installation successfully completed or not.
Open Python console or open command prompt and type “Python3”
If you installed Python version 2, use command “Python” in the command console.
Here I am simply setting two variables with integer values and performing sum operation.
Now Python installation is completed. That’s Great!
If you have entered so many commands, you can clear the Python interpreter console.
Working on command prompt to code Python program is really tedious and time-consuming task. Python interpreter console is good for writing the small script and running instantly. You cannot write a program on the Python interpreter console and save it to run later.
To develop the project in Python, you need to Integrated Development Environment (IDE) just like for many other programming languages.
Which is the best IDE for Python?
I recommend you to use PyCharm IDE for Python to code programs. It will help you to integrate multiple Python programs in a single project. PyCharm IDE also provides the environment to work on multiple projects.
Best Python IDE – PyCharm Installation and Integration:
PyCharm is the best Python IDE provided by JetBrains. You can download PyCharm installation software from its official website Jetbrains. It is available for Linux, Windows and OS X.
Download PyCharm for window and install it on the system.
While installation you need to configure to open Python file by default in PyCharm. Click on create association check box. It will associate every python file on your system with PyCharm.
If you have Python setting for the previous Python version on your system, you need to import Python projects setting for particular Python version.
If you are installing Python first time and there are no other Python versions installed on your system, choose not to have a previous version.
That’s it! You are done with installing Best IDE for Python.
There is nothing difficult in it, right?
Now, let’ try running Python program in Pycharm.
Hello, World! Python Program using PyCharm IDE:
Once the installation and configuration of Pycharm complete, create a new project.
Set new project name and location for project repository where you want to save project source files.
One of the major differences I find among normal and expert programmer, expert programmer always keeps shortcuts handy. That makes their coding standard and as well as faster than the normal programmer.
You can keep in mind some of the shortcuts that require frequently such as keyboard shortcuts for running and debugging the program.
Create New Project:
Click right on the newly created python project. Select: New >> Python File.
Write first hello world program in the new project.
print ("Hello World!");
Run the program. You can see the output in the run console as “Hello World!”
Note: Program syntax can vary as per the Python version you are using. Here I am using Python 3.4.
Installing and configuring Python on your system is the first step to getting into the Python. I have curated complete Python tutorial. Best thing, you don’t need to pay anything to learn Python. It is completely available for FREE. Go through it and master the Python programming.
That’s all from this tutorial. I hope you enjoy it reading and implementing.
If you have any doubt regarding Pycharm configuration or Python setup, feel free to comment below. I will revert to you as soon as possible.