您的位置:首页 > 编程语言 > Python开发

python pyqt4 ide eric安装

2016-04-25 08:55 621 查看

注意事项

关于python,pyqt的版本

笔者安装的是eric,原来电脑安装的是64位的python,32位的pyqt4,导致系统找不到pyqt,后来更换python版本为32搞定,猜测pyqt的版本须与python一致。

关于编码

系统提示

Checking dependencies
Python Version: 2.7.11
Sorry, please install PyQt4.
An internal error occured.  Please report all the output of the program,
including the following traceback, to eric-bugs@eric-ide.python-projects.org.

Traceback (most recent call last):
File "install.py", line 1518, in <module>
main(sys.argv)
File "install.py", line 1421, in main
doDependancyChecks()
File "install.py", line 1088, in doDependancyChecks
print('Error: {0}'.format(msg))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb2 in position 20: ordinal not in range(128)

后来改成utf8无效,最后修改为gb2312搞定。

安装成功

D:\eric>python install.py
Checking dependencies
Python Version: 2.7.11
Found PyQt4
Found pyuic4
Found QScintilla2
Found QtGui
Found QtNetwork
Found QtSql
Found QtSvg
Qt Version: 4.8.7
sip Version: 4.16.8
PyQt Version: 4.11.4
QScintilla Version: 2.9
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...

ps:查看python是32位还是64位的方法

直接在cmd输入python第二行就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: