美文网首页
python+Eclipse+pydev环境搭建

python+Eclipse+pydev环境搭建

作者: 巴鶴 | 来源:发表于2021-02-05 21:22 被阅读0次

本文介绍在Windows系统下配置Eclipse+Pydev相关方法 ,使用Eclipse+pydev插件来编写Python代码。

介绍Eclipse

  1. Eclipse是写JAVA的IDE, 这样就可以通用了,学习代价小。 学会了Eclipse, 以后写Python或者JAVA 都可以。
  2. Eclipse, 功能强大,可以在Mac上和Windows运行

第1步:安装Python

下载地址:http://www.python.org/ 建议安装Python V3.8版本

第2步:安装JAVA JDK

下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html
Eclipse 需要这个安装好JAVA JDK后才能运行

第3步:下载Eclipse

http://www.eclipse.org/downloads/ 到这下载。
下载完后,解压就可以直接使用, Eclipse不需要安装。

第4步:下载pydev插件

pydev插件的官方网站: http://www.pydev.org/(不需要下载)

第5步:在Eclipse中安装pydev插件

启动Eclipse, 点击Help->Install New Software... 在弹出的对话框中,点Add 按钮。 Name中填:Pydev, Location中填http://pydev.org/updates
然后一步一步装下去。 如果装的过程中,报错了。 就重新装。

步骤1.png
步骤2.png

第6步:配置pydev解释器

  • 安装好pydev后, 需要配置Python解释器。
  • 在Eclipse菜单栏中,点击Windows ->Preferences.
  • 在对话框中,点击pyDev->Interpreter - Python. 点击New按钮, 选择python.exe的路径, 打开后显示出一个包含很多复选框的窗口. 点OK


    建议安装python3.8版本.png

第7步:开始写代码

启动Eclipse, 创建一个新的项目, File->New->Projects... 选择PyDev->PyDevProject 输入项目名称


新建项目.png
新建 pyDev Package.png
新建脚本名.png

Eclipse常见问题解决方案整理

  1. http://jingyan.baidu.com/article/0aa22375be09b188cd0d646f.html 字体大小更改
  2. http://jingyan.baidu.com/article/870c6fc325a691b03fe4beac.html 中文乱码
  3. eclipse去掉警告波浪线 Windows-->preferences-->general->Editors-->Text Editors-->Spelling

重启eclipse color theme失效的解决办法

For Eclipse Mars users:
In the main menu bar, go to Window > Preferences
In the preference tree on the left, go to Oomph > Preference Recorder
Check that it is enabled at the top.(record into workspace)
Set your color theme to the desired theme, and click OK.
When restarting Eclipse, it may take a few moments to load your desired theme.


解决重启eclipse color theme失效.png

相关文章

网友评论

      本文标题:python+Eclipse+pydev环境搭建

      本文链接:https://www.haomeiwen.com/subject/tobgtltx.html