Ubuntu 18.04.4 used to configure Eclipse + PyDev Python development environment

First, preparation

1. Download eclipse-jee-oxygen-1-linux-gtk-x86_64.tar.gz

https://www.eclipse.org/downloads/

2, download jdk-8u144-linux-x64.tar.gz

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Here you must download jdk8 version (other versions not tested)

Second, install Eclipse

Extracting eclipse-jee-oxygen-1-linux-gtk-x86_64.tar.gz to / java / eclipse

Ubuntu 18.04.4 used to configure Eclipse + PyDev Python development environment

Ubuntu 18.04.4 used to configure Eclipse + PyDev Python development environment

Configuring JDK environment variables, run sudo gedit ~ / .bashrc, add the following to the end of the document and save it

export JAVA_HOME=/java/eclipse/jre
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH

Run source ~ / .bashrc, the environment variables to take effect

JDK environment configuration check

Run java -version, the following description JDK environment configuration information successfully

Ubuntu 18.04.4 used to configure Eclipse + PyDev Python development environment

Double-click next eclipse / java / eclipse Eclipse to start

Third, install the PyDev plug

Open Eclipse, in the Help -> Installl New Software Click Add, fill in the Name PyDev inside, fill in the Location inside http://pydev.org/updates

Ubuntu 18.04.4 used to configure Eclipse + PyDev Python development environment

Click OK, select PyDev for Eclipse at PyDev, others are not selected

If you are not the latest version of Python, it is recommended not to check the following show only the latest versions of available software line, you can remove the √

Ubuntu 18.04.4 used to configure Eclipse + PyDev Python development environment

And then has been next, intermediate software will let you accept the agreement, wait for the installation after the restart Eclipse

Ubuntu 18.04.4 used to configure Eclipse + PyDev Python development environment

Testing a look at the code

Ubuntu 18.04.4 used to configure Eclipse + PyDev Python development environment

Fourth, the problem is solved

Do not know whether there are people like me automatically install PyDev in Eclipse is not successful, because the network reasons, you need to manually install PyDev.

1. The first step of course is to download PyDev, the official Download Jump to this page: http://sourceforge.net/projects/pydev/files/

Select the PyDev and to download the version stored locally.

2. Extract the ZIP file

I downloaded PyDev 7.5.0.zip, unpack two folders: features, plugins. The Eclipse installation directory has such two folders, respectively, copy them to the corresponding Eclipse installation directory folder

It should be pointed out that, plugins inside the directory you unzipped dropins also possible, if the case is unsuccessful verification PyDev found, you can try this method.

3. Restart Eclipse

I spent the verification process after the restart PyDev in quite a long time, and finally discovered the Internet was pointed out that the high version of PyDev may not be compatible with earlier versions of python, so he re-download a PyDev, has finally succeeded, verification method is as follows: click the window in Eclipse - preferences, the preferences window, you can see a directory PyDev

Guess you like

Origin www.linuxidc.com/Linux/2020-03/162493.htm