ubuntu pydev

本文介绍如何在Ubuntu Linux上安装Eclipse IDE,并设置Sun's Java为默认Java环境。此外,还提供了如何配置Eclipse以提高性能的方法,包括调整JVM参数。最后,详细说明了如何安装PyDev插件来支持Python开发。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Writing a Python program can be done using any editor, even a text editor. If you are running Ubuntu Linux, you may want to edit your code using Eclipse. Eclipse is an Integrated Development Environment or IDE for building, deploying and managing software. It is a source code editor and provides trace and debugging facilities.
Install Eclipse

1. Install Eclipse and Sun's Java by running the following:
sudo apt-get install eclipse sun-java6-jdk

2. Make Sun's Java the default by running the following:
sudo update-java-alternatives -s java-6-sun

3. Edit the JVM configuration file:
sudo -b gedit /etc/jvm

4. and add the following to the top of the file:
/usr/lib/jvm/java-6-sun

5. If you have 1GB or more of memory, you may want to increase the heap size for better performance. The argument Xms refers to the minimum heap size and Xmx refers to the maximum heap size. Edit the Eclipse script file:
sudo -b gedit /usr/bin/eclipse

6. and change VMARGS="" to the following:
VMARGS="-Xms512m -Xmx512 -XX:MaxPermSize=128m"
PyDev
Install PyDev

ps: Install PyDev by running the following:

sudo eclipse

1. Run Eclipse and then go to Help | Software Updates | Find and Install...

2. In the Feature Updates window, select Search for new features to install and click Next.

3. In the Install window, select New Remote Site .

4. In the New Update Site window, specify the following:
Name: PyDev
URL: http://pydev.sourceforge.net/updates/

5. In the Search Results window, select both PyDev Extensions and click Next.

6. In the Feature License window, agree to the license agreement and click Next.

7. Configure the Python interpreter by going to Window | Preferences | Pydev | Interpreter - Python.

8. In the Python interpreters section, click New.

9. Locate your Python interpreter (e.g., /usr/bin/python).

10. When prompted, select your System PYTHONPATH. You can just leave the default checkboxes selected and click OK.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值