Chinaunix首页 | 论坛 | 博客
  • 博客访问: 302416
  • 博文数量: 66
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 509
  • 用 户 组: 普通用户
  • 注册时间: 2015-04-29 13:56
文章分类
文章存档

2018年(2)

2017年(6)

2016年(34)

2015年(24)

我的朋友

分类: Python/Ruby

2017-03-18 15:11:47

在Windows下安装Eric6 IDE, 提示没有安装pyqt5,

然后在Window下面通过easy_install 安装了pip,

然后通过pip install python-qt5, 更新了pyqt5,

继续安装eric, 提示如下错误
Checking dependencies
Python Version: 2.7.11
Found PyQt5
Found pyuic5
Sorry, please install QScintilla2 and
its PyQt5/PyQt4 wrapper.
Error: cannot import name Qsci
Press enter to continue...

在网上查了很多网页,没有找到一个在python 2.7下成功安装了QScintilla的。

最后发现2点,
第一, 在PyQt的官网,PyQt5只有针对Python3的安装包而没有针对Python2.7的,所以网上很多说下载
          PyQt5-5.4-gpl-Py3.4-Qt5.4.0-x64.exe这个方法,行不通
          需要通过pip install python-qt5安装pyqt5

第二, eric 官网,说可以通过pip install QScintilla或者pip3 install QScintilla
         但是在Python2.7环境下,运行pip install QScintilla, 提示如下错误,找不到可以安装的版本
         C:\Python27\Scripts>pip install qscintilla
          Collecting qscintilla
          Could not find a version that satisfies the requirement qscintilla (from versions: )
          No matching distribution found for qscintilla
         最后发现是 Qscintilla这个包不支持 2.7

所以如果要用eric6 IDE, 不能在Python2.7下安装,需要python 3


阅读(3492) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~