Skip to main content
Redhat Developers  Logo
  • Products

    Platforms

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat AI
      Red Hat AI
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • View All Red Hat Products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat Developer Hub
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat OpenShift Local
    • Red Hat Developer Sandbox

      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Secure Development & Architectures

      • Security
      • Secure coding
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • Product Documentation
    • API Catalog
    • Legacy Documentation
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Using DTS Eclipse, PyDev, and Python 2.7

October 1, 2013
Langdon White
Related topics:
Developer ToolsLinuxPython
Related products:
Developer ToolsRed Hat Enterprise Linux

Share:

    Red Hat intended for developers to integrate Developer Toolset 2.0 (DTS) and Red Hat Software Collections 1.0 (RHSCL). As you may not realize, inside the DTS is a copy of Eclipse and you can use that with any software collection. In other words, you can use PyDev, with the Python 2.7 Software Collection from RHSCL in the Eclipse from DTS. Let's find out how.

    First, let's make sure you have the right repos,

    [lwhite@lwhite-laptop ~]$ sudo yum repolist
    Loaded plugins: product-id, security, subscription-manager
    This system is receiving updates from Red Hat Subscription Management.
    
    rhel-server-dts2-6-rpms                                                                                             | 2.8 kB    00:00
    rhel-server-rhscl-6-rpms                                                                                            | 2.8 kB     00:00
    
    repo id                             repo name                                                                                        status
    
    rhel-server-dts2-6-rpms             Red Hat Developer Toolset 2 RPMs for Red Hat Enterprise Linux 6 Server                              235
    rhel-server-rhscl-6-rpms            Red Hat Software Collections RPMs for Red Hat Enterprise Linux 6 Server                             440
    
    repolist: 32,446

    If not, add the channel (using rhn commands) or the repo (using yum), here is yum:

    sudo yum-config-manager --enable rhel-server-dts2-6-rpms
    sudo yum-config-manager --enable rhel-server-rhscl-6-rpms

    Ok, once you have those, we need to install Eclipse and Python.

    sudo yum install devtoolset-2-eclipse python27

    Now we need to get PyDev, first step of which is getting the certificate and installing it. However, note, if you are using the alternatives system in RHEL, you don't need to start Eclipse and find java_home, you can use the alternatives keytool directly. If you are not, you can just run eclipse with "scl enable devtoolset-2 eclipse".
    Here is what worked on my machine, YMMV. See PyDev Install for more ideas.

    [lwhite@lwhite-laptop ~]$ cd /tmp
    [lwhite@lwhite-laptop tmp]$ wget http://pydev.org/pydev_certificate.cer
    [lwhite@lwhite-laptop tmp]$ keytool -import -file /tmp/pydev_certificate.cer
    Enter keystore password:
    Owner: CN=Brainwy Software, OU=PyDev, O=Brainwy, L=Florianopolis, ST=SC, C=Brazil
    
    Trust this certificate? [no]:  yes
    Certificate was added to keystore

    After the certificate is installed, you can now actually run eclipse and install the plugin the "normal" way.

    scl enable devtoolset-2 python27 eclipse

    Go to "Help | Install New Software..." Add the update site.
    Screenshot: Add Repository
    Skipping many "next" buttons and "confirms" (if you want a step by step, check out the PyDev Install).

    When you get to the restart step, you may want to say "no," then exit, and restart with the scl enable command. We will make this easier later.

    We need to setup the interpreter now, so startup Eclipse again. Then, go to "Window | Preferences", Then "PyDev | Interpreter - Python" and then click on "New..." ("Auto Config" may not work). Once there, give it an appropriate name then browse to the interpreter installed by SCL Python27 ("/opt/rh/python27/root/usr/bin/python").

    Screenshot: Select interpreter

    OK, now once you hit OK, you need to select all of the libraries (Eclipse may just figure it out). See below:

    Screenshot: Selection needed

    Now, click OK/Confirm/What-have-you, until you get out of Preferences and everything should be set.

    To make things easier you can create an alias and maybe add it to your .bashrc, try

    alias eclipse-python="scl enable devtoolset-2 python27 eclipse"
    Last updated: November 2, 2023

    Recent Posts

    • Protecting virtual machines from storage and secondary network node failures

    • How to use OCI for GitOps in OpenShift

    • Using AI agents with Red Hat Insights

    • Splitting OpenShift machine config pool without node reboots

    • Node.js 20+ memory management in containers

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue