Installation method:
A more casual method is to extract the plugins in the compressed package to the corresponding directory under the Eclipse installation directory. The same operation is done for the features directory. But if you don’t want to mess with the original version of Eclipse, you can choose the following operations:
Create a new links folder in the Eclipse installation directory. Then create a new directory named eclipse under the links folder, and finally extract the contents of the pedev.zip compressed package into the eclipse directory.
In the links directory, create a new file named pydev.link. The content of the file is: path=C:ItDevelopeclipselinkseclipse, (where path=C:ItDevelopeclipse is the installation directory of eclipse)
3. Then just restart Eclipse. How to check if pydev has been installed correctly? Open Eclipse–>Windows–>preferences, and then find the Pydev option in the tree structure on the left.
Configure PyDev:
After PyDev is installed, you need to configure the interpreter. In the Eclipse menu bar, select Window > Preferences > Pydev > Interpreter – Python to configure Python here. First you need to add the installed interpreter. If you have not downloaded and installed Python, please go to the official website to download version 2.x or 3.x: http://www.python.org/.
I am using the Python3.x version, and Python is installed in the D:Python32 path. Click New to enter the dialog box. The Interpreter Name can be named casually, and the Interpreter Executable selects the Python interpreter python.exe.
After clicking OK, a window with many check boxes will pop up. Select the option that needs to be added to the SYSTEM python path and click OK.
Then in the Python Interpreters window, click OK again to complete the configuration of the Python interpreter.
At this point, PyDev has been configured and you can use Eclipse to start writing Python.
Hola World:
In the Eclipse menu bar, select File > New > Pydev > Project…, and select PyDev Project in the window. There are three types of projects that can be created. Select PyDev Project.
Click Next, enter the project name, select the corresponding project type, and the Python syntax version and Python interpreter used.
After the creation is successful, enter the perspective, right-click the src icon, select New->Pydev Package, and create a new package. The system will automatically generate the __init__.py file, which does not contain any content. Then right-click the created package, select New->Pydev Module, create a new Python module, and click Finish.
Now we can start creating our first .py file.
it works
it works
it works