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.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

A passionate software engineer who loves to explore new technologies. He is a public speaker and loves writing about technology, especially about Linux and open source.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.