Python之GUI及库的安装
IDE工具及库:PyCharm5编译器、pyqt、tkinter、wxpython.
pyqt:中大型项目,目前主流
Tkinter:轻量级的GUI开发框架
wxpython:拥有比较完善的控件(比较老)
Python自身的IDLE就是用tkinter开发的---pic
推荐博文:
http://blog.csdn.net/loster_li/article/details/52902217
http://www.jianshu.com/p/98b2fbb3a45c
Python库安装
库文件下载网站:Python扩展包的非官方Windows二进制文件
1,http://www.lfd.uci.edu/~gohlke/pythonlibs/
安装:将下载的库文件放在C:\Users\Enz\AppData\Local\Programs\Python\Python36\Scripts目录下,然后在cmd下调用pip程序(pip install 路径/库名)进行安装,测试是否安装成功则调用该库,看是否报错。
2,整合库下载(720多个基本库):https://www.continuum.io/downloads,然后在PyCharm5配置环境即可(http://blog.csdn.net/seymour163/article/details/51810680)
安装BUG解决:
1,安装库(如PyQt4时)出现C:\Users\Enz>pip install D:\Python_Libs\Scripts\PyQt4-4.11.4-cp35-cp35m-win_amd64.whl
PyQt4-4.11.4-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
调看Python版本的pip支持库安装类型,再去下载相应的库文件进行安装
>>> import pip
>>>print(pip.pep425tags.get_supported())
[('cp36', 'cp36m', 'win_amd64'), ('cp36', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), ('cp36', 'none', 'any'), ('cp3', 'none', 'any'), ('py36', 'none', 'any'), ('py3', 'none', 'any'), ('py35', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]