PyDev的安装和设置
![此博文包含图片](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)
第一种:在Help菜单中,选择Install New Software , 选择Add按钮,Name:PyDev(这个随便起),Location: http://pydev.org/updates
第二种:
Eclipse 3.4 and 3.5
Extract the contents of the zip file in the eclipse/dropins folder and restart Eclipse.
Before Eclipse 3.4
Extract the contents of the zip file on top of Eclipse, making sure the plugins folder is extracted on top of the eclipse/plugins folder and the features is on top of theeclipse/features folder. After that, restart Eclipse with the '-clean' flag, so that Eclipse finds out about it.
显然,我当然版本是3.7
验证是否安装成功:
Window -- Preferences --PyDev
2.配置PyDev
第一步:Windows -- Preferences -- PyDev -- Interpreter -- Python 填上解释器名字和路径,路径选相应的python.exe; 应用后会需要导入相应的库,全部选中。
第二步:语言设置
1)General->Editors->Text Editors->Spelling,Encoding改成Other:UTF-8
2)General->Workspace,Text file encoding改成Other:UTF-8
3)找到安装目录下的\plugins\org.python.pydev.debug_x.x.x.yyyymmddhh\pysrc\pydevd.py,
920行的 encoding = Non 改成 encoding = "UTF-8",保存
方法:Window -- Preferences -- Pydev -- Editor --Template -- Empty,然后点击“Edit”按钮,把我们要添加的语句加进去就可以了
![PyDev的安装和设置 PyDev的安装和设置](https://i-blog.csdnimg.cn/blog_migrate/21bb2e90580507a6bb879d3459878b2c.jpeg)
注: 以上是对Empty模版的修改,要修改其他模板
![PyDev的安装和设置 PyDev的安装和设置](https://i-blog.csdnimg.cn/blog_migrate/70246d3e202c72b62f4ba40e509e9935.jpeg)
可以采用同样的方式。
若是在Fedora16中,则相应的eclipse主目录在:
/usr/lib64/eclipse中,Extract the contents of the zip file in the eclipse/dropins folder and restart Eclipse.亦可。