Eric6+PyQt5(Python3.7)安装教程(完美解决安装过程中PyqtWebEngine couldn't be detected 的问题)

Eric6+PyQt5(Python3.7)最新安装教程(完美解决安装过程中PyqtWebEngine couldn’t be detected 的问题)

Eric作为python开发出来python IDE,属于轻量级IDE,作为主流的三大python集成开发环境之一(pydev+eclipse,pycharm,Eric),Eric最为轻便,对系统的配置要求低,且界面开发具有一定的优势。

第一步: PyQt 5.10.0+QScintilla 2.10.2+sip 4.19.17+pyqt5-tools5.10.1.1.3的安装

python的使用者习惯于使用pip来安装Python库,起初我也是使用pip install PyQt5来进行安装,但是如果不指定版本,所安装的库就是最新版本。
Eric6+PyQt5(Python3.7)安装教程(完美解决安装过程中PyqtWebEngine couldn't be detected 的问题)_第1张图片

后来通过Stack Overflow论坛才知道PyQt 5.10.0以上版本都会出现PyqtWebEngine couldn’t be detected的问题,这里我选用PyQt 5.10.0+QScintilla 2.10.2+sip 4.19.17+pyqt5-tools5.10.1.1.3来进行Eric6的安装,由于国外镜像源下载速度实在太慢,这里我使用豆瓣提供的镜像源进行安装。

1.sip的安装,在命令行窗口输入:

pip install sip==4.19.17 -i https://pypi.douban.com/simple

2.PyQt5的安装,在命令行窗口输入:

pip install PyQt5==5.10.1 -i https://pypi.douban.com/simple

3.QScintilla的安装,在命令行窗口输入:

pip install QScintilla==2.10.2 -i https://pypi.douban.com/simple

4.pyqt5-tools的安装,在命令行窗口输入:

pip install pyqt5-tools==5.10.1.1.3 -i https://pypi.douban.com/simple

5.安装好后,输入pip list,查看安装完毕的库,如下图所示:
Eric6+PyQt5(Python3.7)安装教程(完美解决安装过程中PyqtWebEngine couldn't be detected 的问题)_第2张图片
到这里,第一步算是完成了

第二步:Eric的下载与安装

我使用的是Eric19.8版本,可以从https://pan.baidu.com/s/1h1X0oa5doWr1WjFqLhOg0g下载得到,下载完毕后,进行解压缩,得到如下图所示的文件列表
Eric6+PyQt5(Python3.7)安装教程(完美解决安装过程中PyqtWebEngine couldn't be detected 的问题)_第3张图片
1.使用cd进入列表中install.py所在的文件路径,获取install.py所在文件路径时可点击图中黄色部分,复制该文件路径,我复制的文件路径为:
C:\Users\Sun Strong\Desktop\eric6-19.8,随后在命令行窗口中输入:

cd C:\Users\Sun Strong\Desktop\eric6-19.8

这样就进入到了install.py所在的文件目录,然后输入:

python install.py

附上我最后两步的安装命令行及提示:


C:\Users\Sun Strong>cd C:\Users\Sun Strong\Desktop\eric6-19.8

C:\Users\Sun Strong\Desktop\eric6-19.8>python install.py
Checking dependencies
Python Version: 3.7.3
Found PyQt5
Found pyuic5
Found QScintilla2
Found QtGui
Found QtNetwork
Found QtPrintSupport
Found QtSql
Found QtSvg
Found QtWidgets
Found QtWebEngineWidgets
Qt Version: 5.10.0
sip Version: 4.19.8
PyQt Version: 5.10
QScintilla Version: 2.10.2
All dependencies ok.

Cleaning up old installation ...

Creating configuration file ...

Compiling user interface files ...

Compiling source files ...

Installing eric6 ...
Installing Python API files to 'D:\python3.7\Lib\site-packages\PyQt5\Qt\qsci\api\python'.
Installing Ruby API files to 'D:\python3.7\Lib\site-packages\PyQt5\Qt\qsci\api\ruby'.
Installing QSS API files to 'D:\python3.7\Lib\site-packages\PyQt5\Qt\qsci\api\qss'.

Installation complete.

至此,Eric6就安装完成了,恭喜你开启了Eric6轻量级开发环境编程之旅。
具体的开发环境配置可以参考https://blog.51cto.com/xvjunjie/2071776

你可能感兴趣的:(Eric6+PyQt5(Python3.7)安装教程(完美解决安装过程中PyqtWebEngine couldn't be detected 的问题))