In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to configure Eclipse+PyDev under Ubuntu12.04, which is very detailed and has certain reference value. Friends who are interested must finish it!
Development platform: Ubuntu12.04IDE:Eclipse3.7.2python version: python3.4.4
Build Eclipse+PyDev development environment, find some tutorials on the Internet, there are some mistakes, try for a long time, but also take a lot of detours. It is hereby sorted out. Friends who need it can refer to it.
Installation steps:
1. Install python3.4.4
Sudo apt-get install python3.4
Ubuntu12.04 installs and uses python2.7 by default, and I want to use python3, so I reinstalled python3.4. It is important to note here that do not uninstall the already installed version of python. Because there are some software that only supports the old version of python, there will be all kinds of errors if you uninstall it! In addition, typing python on the terminal opens python2.7 by default. If you want to change it, you can try link, as long as there is no conflict.
2. Install eclipse
Sudo apt-get install eclipse-platformsudo apt-get install eclipse-cdt
Standard Eclipse only supports JAVA development, and the CDT plug-in must be installed in order to develop the Cmax Candle + program. In order to save trouble in the future, I installed it together.
3. Install PyDev
A. You need to check the version of Eclipse before installation. The Eclipse version and PyDev should be appropriate. The installation version of PyDev is too high. The following problems may occur during installation:
B. Check the method Help- > About Eclise Platform, which is to find About Eclipse Platform in Help in the Eclipse menu bar. For example, my version is as follows:
C, click Help- > Install New Software, the following dialog box appears, and click Add.
D, add library, Name: just give it a name, Location: http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml, and then click OK.
Note: here and some other online tutorials are different, most of the other tutorials are: http://www.pydev.org/updates/ this site can also be used, but can only install the latest version of PyDev, are 4.* version, for my version of Eclipse3.7.2 is obviously not suitable, there will be the error mentioned above. So I found a new source address, which is easy to use until the blog is published. If you add an error in Location and often report an error, how do you delete the path that adds the error? Window- > Preference- > Install/Update- > Available Software Sites, delete the address that was added incorrectly.
E. After adding, remove the option to show only the latest version, so that we can see many versions of PyDev, as shown in the screenshot below:
F. Here I choose the version 2.8.2, and then proceed to the next step. The screenshot is as follows:
G, just go ahead with the rest of the way. At the end of the installation, you will be prompted whether to trust these certificates. Check the trust option, and then click OK. The screenshot is as follows:
H. After installation, select restart now to restart, and then configure the PyDev interpreter.
4. Configure the PyDev interpreter
A, Window- > Preference- > PyDev- > Interpreter-Python, click New to create New, and the screenshot is as follows:
B. Add Python3.4 path, Interpreter Name, and add pairs to the path as you like. My configuration is as follows:
C. Select the required library. My configuration is as follows:
D, wait for the configuration to be completed.
5. Test
A. The screenshot of the new project is as follows:
B, select PyDev Project,Grammar Version, select 3.0. The completed projects are as follows:
C. Add a source file, right-click hello, and add a new file.
D, the final test is successful. The screenshot is as follows:
At this point, the configuration of Eclipse+PyDev under Ubuntu12.04 is complete! If there are any mistakes, please correct them. Thank you!
These are all the contents of the article "how to configure Eclipse+PyDev under Ubuntu12.04". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.