Install Pydev (various problem solutions) in Ubuntu Eclipse of virtual machine

Source: Internet
Author: User

Scenario One: Online installation


Pydev Installation Method

Install Pydev below:

Inside Eclipse: Help, Install New software ...,

Choose Add, in the name of any write, you can write a pydev, and then the following location to fill out the source (more recently, many sources are hung, as of the author, the source is available):http://pydev.org/updates

then click OK.



Be patient for a while, if this source is not hanging, eclipse will automatically retrieve the available software:

Just select the first Pydev, and then the next step is OK.


If the source of the above Pydev is hung, try the following:

http://pydev.org/nightly

Http://www.fabioz.com/pydev/updates

Http://pydev.sourceforge.net/updates



Scenario Two:

If the scenario is not successfully installed, try an offline installation


1. Download Pydev

From here you can find the latest version: http://sourceforge.net/projects/pydev/files/pydev/

2. Installing Pydev

Unzip after download, get two folders: Features and plugins, just copy them to the appropriate directory in eclipse.

sudo cp-r/source_path/features/target_path/eclipsesudo cp-r/source_path/plugins/target_path/eclipse

Source_path replaced with the directory where Pydev.zip was decompressed, Target_path replaced with the Eclipse-installed directory

Cp-r indicates that recursive processing is replicated, copying the files in the specified directory with subdirectories.

3. Modify Permissions

The archive default permissions are root, so copy the past Pydev and fail to load Pydev if you start eclipse normally, unless Sudo runs eclipse.

The workaround is to modify the permissions, simply by setting all the files/directories under the Eclipse folder to all user-readable writable executables.

sudo chmod-r 777/path/eclipse

-r: The same permissions change for all files in the current directory and subdirectories (that is, they are changed in a recursive manner)
-RWXRWXRWX (777)--all users have read, write, execute permissions

This time to start eclipse,windows->preferences, you can see the Pydev on the left.


This should be successful, but I still can't get out of this pydev, then try another configuration



1. Download the latest Pydev installation package to http://sourceforge.net/projects/pydev/. It is not recommended to use the URL installation in Eclipse because the URLs of many installation sources are already invalid.

2. Set up the/opt/eclipse/links/eclipse directory (links directory to store each plug-in, easy to manage the plug-in), the extracted Pydev file into the directory, the code ibid.

3. Create a. link file for each plug-in for the links directory

$sudo    gedit/opt/eclipse/links/pydev.link when opened, enter: path=/opt/eclipse /links/eclipse /pydev

4. After restarting eclipse, you will see the Pydev option under Window->preference and the installation is complete.




So you can see the Pydev on the left.



Then, start Eclipse and open window->preferences, such as:

Select Interpreter-python, then select New, in the popup dialog interpreter name write Python, interpreter executable write Python.exe address. And then click OK. The following dialog box pops up:

Finally, click OK and the following results appear:

All right, now it's all ready. You can write a Python program.


It took me half a day to take a python ... All sorts of ways were exhausted, and finally succeeded. My virtual machine is not Ubuntu, but the Cisco-developed SDN HUB Tutorial VM 64-bit is used for software-defined networking development.






Install Pydev (various problem solutions) in Ubuntu Eclipse of virtual machine

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.