Winows2008R2 + Python + PyQt5 + Eric6环境搭建

1.下载安装Python

  • 本次使用的版本为Python3.6.6,3.7版本在安装Eric6时一直报错
  • Python官网:https://www.python.org/
  • 安装Python时选择【Add Python 3.6 to PATH】将Python目录添加到环境变量可以省去手动设置的麻烦。
  • 选择【Customize installation】定制安装,自定义安装路径(避免使用带中文名和空格的目录)
  • 在第三步的【Advancde Options】勾选【Install for all users】
  • 其他他全部默认直至安装完毕即可。

2.安装PyQt5

  • pip在安装Python的时候已经默认安装,直接执行在CMD下执行pip install PyQt5没有报错即安装成功,可用import PyQt5命令校验

3.安装QScintilla

  • CMD下执行pip install QScintilla,安装完成后会有【Successfully installed QScintilla-2.10.7】

4.下载安装eric6

  • 下载地址:https://sourceforge.net/projects/eric-ide/files/eric6/stable/
  • 同时下载eric6-17.12.zip和eric6-i18n-zh_CN-17.12.zip两个压缩包。eric6-i18n-zh_CN-17.12.zip为中文补丁,直接覆盖即可。
  • 执行python C:\Python36\eric6\install.py进行安装
  • 安装完成后运行eric6\eric\eric6.pyw即可运行或者执行:python F:\Python36\eric6\eric\eric6.py运行
  • 出现以下提示安装成功:
C:\>python C:\Python36\eric6\install.py
Checking dependencies
Python Version: 3.6.6
Found PyQt5
Found pyuic5
Found QScintilla2
Found QtGui
Found QtNetwork
Found QtPrintSupport
Found QtSql
Found QtSvg
Found QtWidgets
Found QtWebEngineWidgets
Qt Version: 5.11.1
sip Version: 4.19.12
PyQt Version: 5.11.2
QScintilla Version: 2.10.7
All dependencies ok.

Cleaning up old installation ...

Creating configuration file ...

Compiling user interface files ...

Compiling source files ...

Installing eric6 ...

Installation complete.


Press enter to continue...

猜你喜欢

转载自blog.csdn.net/weixin_43257494/article/details/82807206