How to Setup PyDev for Eclipse IDE on Linux

Eclipse is not a new term that programmers will hear. It is very popular in the developer community and has been in the market for a very long time. This article is all about showing how to set up Python in Eclipse using the PyDev package.

Eclipse is an Integrated Development Environment (IDE) used for Java development. Other than Java it also supports other languages like PHP, Rust, C, C++, etc. Though there are dedicated Linux IDE’s available in the market for python I have seen still people tweaking up their Eclipse environment to make it perfect for Python development.

We will break down the installation into 3 parts.

Let’s jump right in to see how we can set it up too.

Installing Java in Linux

The eclipse will not run unless we install Java, so this is a mandatory step. The latest release of Eclipse requires Java JRE/JDK 11 or above and requires 64-bit JVM.

Take a look at our comprehensive article on how to set up Java on Linux.

Installing Eclipse in Linux

Take a look at our comprehensive article on how to Install Eclipse on Linux.

Installing PyDev in Linux

PyDev is a third-party plugin created to integrate with Eclipse for python development, which comes with many features including

  • Linter(PyLint) Integration.
  • Auto completion.
  • Interactive terminal.
  • Refactoring support.
  • Go to definition.
  • Support for Django.
  • Debugger support.
  • Integration with a unit test.

PyDev requires Java 8 and Eclipse 4.6 (Neon) to support from Python 2.6 and above. To install PyDev we will use the Eclipse update manager.

Go to “Menu BarHelpInstall New Software”.

Eclipse Software Install
Eclipse Software Install

You will get a window opened as shown in the below image. Click on “Add” and type the URL “”. The eclipse will take care of installing the latest version of PyDev from the URL provided. Select the PyDev package and press and “Next” as shown in the image.

Install Pydev for Eclipse
Install Pydev for Eclipse

Once the installation is completed go to “MenuBarWindowPreferences”. On the left-hand side, you will find PyDev. Go ahead and expand it. This is where you can configure the PyDev environment.

The next step would be to configure the Python interpreter. Press “Choose From List” as shown in the image. This will check for all the installed python versions in your machines. In my case, I have Python2 and Python3.8 installed. I will choose Python 3.8 as my default interpreter. Click “Apply and Close” and you have successfully set up a Python Interpreter.

Configure Python Interpreter
Configure Python Interpreter

It’s time to run some code. Create a new project by selecting “Project ExplorerCreate a ProjectPyDevPyDev Project”.

Create PyDev Project
Create PyDev Project

It will ask to configure project-related information like Project Name, Directory, Python Interpreter version. Once these parameters are configured click “Finish”.

PyDev Project Configurations
PyDev Project Configurations

Create a new file with a .py extension and place your code. To run the program, right-click and choose “Run As → Python Run” or press the run icon from the menu tray. You can also press “CTRL+F11” to run the program.

Run PyDev Program
Run PyDev Program

That’s it for this article. We have seen how to setup PyDev on Eclipse. There are a lot more features PyDev offers. Plays with it and share your feedback.

Tutorial Feedback...
Was this article helpful? If you don't find this article helpful or found some outdated info, issue or a typo, do post your valuable feedback or suggestions in the comments to help improve this article...

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

Got something to say? Join the discussion.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.