python+Eclipse+pydev环境搭建

2021-02-05  本文已影响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解释器

第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
上一篇 下一篇

猜你喜欢

热点阅读