In recent years, with the rise of artificial intelligence, web crawlers and big data analysis, python has suddenly become popular. I have been relatively free recently and decided to start playing python. There is an old saying-sharpening a knife without cutting firewood by mistake, a good programming tool will greatly improve your efficiency. I have been using eclipse to write Java projects before, and I am more familiar with eclipse, so I decided to use the familiar eclipse as the platform, which is easier to get started.
1. Required software:
1. Java 8 and above
2. python2.7 and above
3. Eclipse IDE development tools
4. pyDev plugin
2. Installation steps:
1. Java8: Log in to oracle official website to download: Java download address: http://www.oracle.com/technetwork/java/javase/overview/index.html , remember to download the version above 8.0;
Double-click to install after downloading to test the Java environment: Run -->CMD, enter java -version to test, if the version number of Java is prompted, it means that the Java installation is successful;
2. eclipse: download address eclipse download address: http://www.eclipse.org/downloads/packages/ , my download is "
Eclipse IDE for Eclipse Committers" version, as follows:
Unzip, create a new subfolder named "jre" under the eclipse folder, copy all the files in the jre folder installed in the first step to the jre folder of eclipse.
3. python: download address: https://www.python.org/downloads/ , I downloaded version 3.6.5; then install it (note check to add python to the system environment variable); test after installation: open CMD , After entering python, it prompts the python version and enters the interactive programming environment >>>, indicating that the installation is successful.
4. Pydev: zip package installation file: https://download.csdn.net/download/hn_tzy/10666229 or go to the official website to download: https://sourceforge.net/projects/pydev/files/ , after the download is complete, unzip it, and Copy the unzipped folder to the dropins folder under the eclipse folder.
3. Test environment:
1. Start eclipse, click the menu "window"-->"preferences", if the installation is successful, the pydev plug-in will appear, as shown below:
2. Specify the python interpreter: menu "window"-->"preferences"
3. Create a new python project: menu "File"-->"New"-->"other"-->"PyDev"-->"PyDev project";
Note: Python uses UTF-8 by default, change the eclipse workspace to UTF-8:
菜单"window"-->"preferences"
So far, the python development environment of eclipse+pydev has been set up, let us have a swim in the python world.