pyqt5安装eric6说检测不到Qsci

时间:2022-04-17 23:04:15

本文根据网址: http://bbs.csdn.net/topics/391080378?page=1 并结合自身安装过程整理!

以下是我安装过程中,命令窗口的输出,第一次安装的时候提示错误:

Sorry, please install QScintilla2 and its 

PyQt5/PyQt4 wrapper. 

Error: cannot import name 'Qsci'

然后根据上面贴子中提到的方法,先用: pip install QScintilla 完成后,再重新执行python install.py命令即可。

D:\eric6-17.07>python install.py
Checking dependencies
Python Version: 3.6.2
Found PyQt5
Found pyuic5
Sorry, please install QScintilla2 and
its PyQt5/PyQt4 wrapper.
Error: cannot import name 'Qsci'
Press enter to continue...

D:\eric6-17.07>pip install QScintilla
Collecting QScintilla
Downloading QScintilla-2.10.1-5.9.1-cp35.cp36.cp37-none-win_amd64.whl (1.8MB)
100% |████████████████████████████████| 1.9MB 16kB/s
Requirement already satisfied: PyQt5>=5.9.0 in c:\python\lib\site-packages (from QScintilla)
Requirement already satisfied: sip<4.20,>=4.19.3 in c:\python\lib\site-packages (from PyQt5>=5.9.0->QScintilla)
Installing collected packages: QScintilla
Successfully installed QScintilla-2.10.1

D:\eric6-17.07>python install.py
Checking dependencies
Python Version: 3.6.2
Found PyQt5
Found pyuic5
Found QScintilla2
Found QtGui
Found QtNetwork
Found QtPrintSupport
Found QtSql
Found QtSvg
Found QtWidgets
Qt Version: 5.9.1
sip Version: 4.19.3
PyQt Version: 5.9
QScintilla Version: 2.10.1
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...