博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
安装pydev到eclipse
阅读量:2437 次
发布时间:2019-05-10

本文共 1833 字,大约阅读时间需要 6 分钟。

刚刚接触python,写的代码的时候都是用vi,感觉效率不高,就google一下,发现有很多python的IDE,很多人用的是elclips的pydev这个插件。下面我就安装一下它:
1、下载
2、解压
[yorks@localhost Software]$ mkdir pydev
[yorks@localhost Software]$ cd pydev/
[yorks@localhost pydev]$ ls
org.python.pydev.feature-1.4.6.2788-sources.zip
[yorks@localhost pydev]$ unzip org.python.pydev.feature-1.4.6.2788-sources.zip
features  org.python.pydev.feature-1.4.6.2788-sources.zip  plugins
3、查看安装的eclips的plugins和features目录在哪里。
[yorks@localhost pydev]$ whereis eclipse
eclipse: /usr/share/eclipse
[yorks@localhost pydev]$ ls -l /usr/share/eclipse/
总计 416
drwxr-sr-x  2 root root   4096 06-29 15:03 about_files
-rw-r--r--  1 root root  13852 2008-09-23 about.html
-rw-r--r--  1 root root  39292 2008-09-23 artifacts.xml
drwxr-sr-x  5 root root   4096 06-29 15:03 configuration
drwxr-sr-x  2 root root   4096 2008-09-23 dropins
-rwxr-xr-x  1 root root  19475 2008-10-31 eclipse
-rw-r--r--  1 root root    113 2008-09-23 eclipse.ini
-rw-r--r--  1 root root  16536 2008-09-23 epl-v10.html
drwxr-sr-x 20 root root   4096 07-05 13:24 features
-rwxr-xr-x  1 root root 263000 2008-10-31 libcairo-swt.so
-rw-r--r--  1 root root   6506 2008-09-23 notice.html
drwxr-sr-x  5 root root   4096 06-29 15:03 p2
drwxr-sr-x 22 root root  20480 07-05 13:25 plugins
drwxr-sr-x  2 root root   4096 06-29 15:04 readme
通过查看知道features和plugins的目录在/usr/share/eclipse目录下。
4、将pydev的features和plugins目录下的所有东西mv到/usr/share/eclipse/对应的目录下。
[yorks@localhost pydev]$ mv features/* /usr/share/eclipse/features/
[yorks@localhost pydev]$ mv plugins/* /usr/share/eclipse/plugins/
5、启动eclipse,设置pydev的环境。
Window => preferences => 点击左边的pydev => 单击interpreter-Python
=> 点击右边的new =>填好name(我这里填python)和executable路径(我这里填写我的python执行路径:/usr/bin/python)
===================================完毕=================================
注意:在第5步中,一定要设置好。如果没有设置好,会在你新建python工程的时候出现Project interpreter not specified错误提示。

转载地址:http://sihmb.baihongyu.com/

你可能感兴趣的文章
caffe编译报错解决记录
查看>>
LTP(Linux Test Project)学习(七)——LTP提交补丁
查看>>
Linux 4.0亮点特性
查看>>
LTP(Linux Test Project)学习(六)—— 问题分析:chattr命令的限制
查看>>
Linux 4.1亮点特性
查看>>
Caffe学习(二) —— 下载、编译和安装Caffe(源码安装方式)
查看>>
Linux 4.4亮点特性
查看>>
Linux 4.5 亮点特性
查看>>
Makefile开发工具学习小结
查看>>
学习linux0.11内核代码——引导启动程序bootsect.s(3)
查看>>
学习linux0.11内核代码——引导启动程序setup.s
查看>>
Linux 单用户模式patch解析
查看>>
决策树
查看>>
CGI
查看>>
时间换算
查看>>
csv文件
查看>>
xml空格WhiteSpace处理
查看>>
XML CDATA
查看>>
转义字符
查看>>
TIOBE开发语言排行榜
查看>>