jdk+eclipse+python+PyDev
1、jdk 1.8 ---https://blog.csdn.net/u014166319/article/details/71791287
JAVA_HOME = D:\ProgramFiles\Java\jdk1.8.0_141
Path = ;%JAVA_HOME%\bin
CLASSPATH = .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
验证:java -version
2、 eclipse Photon Release (4.8.0) ---http://www.eclipse.org/downloads/ > EclipseIDE for Java EE Developers
//设置编码格式:Preferences >general > workspace
3、python 3.7 官网下载安装 https://www.python.org/downloads/windows/
Path = ;D:\ProgramFiles\Python3.7)
验证:python
4、pyDev 6.4 eclipse查件在线安装: Name :pydev ---Location:http://pydev.org/updates
eclipse配置:Preference>pydev - interpreters -python interpreters >python路径
5、创建python工程
1)run python modual(*.py)时报错:SyntaxError: Non-UTF-8 code starting with '\xc4' in file ----编码格式问题
解决:文件顶部加上:#coding=gbk
PS:声明编码格式后运行一次,以后即使删除源文件开头编码格式注释也可以运行
网友评论