Tutorial 4 – Setup PyCharm IDE
Welcome to the 4th article in Behave BDD series!
What you will Learn :
Download PyCharm IDE
Install PyCharm IDE
Configure python interpreter
Change Theme
Download PyCharm IDE
PyCharm is the most widely used IDE for Python language. To download PyCharm, simply launch the below website
https://www.jetbrains.com/pycharm/download/#section=windows
You would see Professional and Community download versions
Download the Community edition
Install PyCharm IDE
Double click to start installation
Next
Next
Next
Install
The installation starts
Finish. This would reboot your system
You would see PyCharm Community icon on your windows desktop
Double click the icon
Close the popup window that you get (asking to import some settings). The below window comes up
Click ‘New Project’.
The below window would come up. It shows the location of python project (where it would be created). By default, the name of python project is pythonProject1. You can edit the name if you like. For time being, let it be pythonProject1. Note down the project location for any future reference
Configure python interpreter
Next, click shown against
You would see 2 radio button options under
‘Python Interpreter: New Virtualenv environment’.
One option is to create a brand new virtual environment and the other option helps let us choose a virtual environment that we have already created
Let us select the second radio button option
As you notice in the dropdown, we see <No interpreter>. So we have to select a python interpreter. To do that click the ellipsis button
Select ‘System Interpreter’ from left hand side. On the right hand side you would see the interpreter
Click Ok. We now see the interpreter in the second radio button dropdown, see below
Click ‘Create’ to create the python project
The below window comes up
So our project is created.
Change Theme
As an optional step, you can change the theme to make the project better visible. To do that View > Quick Switch Scheme..
Select ‘Theme’
Select IntelliJ Light
The visibility is better now
So on the left hand panel you can see the project. The project name matches the default project name
You can see the project location on the left had side, see below
If we go to this location, we see our project created
If we go inside this folder, we see below contents
In the next tutorial, we will add the Python virtual environment (that we had created in previous tutorial) to PyCharm IDE. We will also add the Gherkin Plugin to PyCharm.
Thank you for reading!