zl程序教程

您现在的位置是:首页 >  其它

当前栏目

试一试PyQt5,2020.11.20

20 PyQT5 2020.11 试一试
2023-06-13 09:13:02 时间

1、来源:https://mp.weixin.qq.com/s/9l8jJdZWJbj7MVgBHvLv8w

2、BUG。缩进错误

3、

4、使用BUG神器,没用,还得手动调BUG。

5、搜索相关文章。无

6、手动调缩进后。BUG报错:ValueError: dict contains fields not in fieldnames,百度搜索。误解。

7、搜索writer.writerow

8、

9、BUG36行,a+改为wb。不得。

10、卡住了。

11、BUG:ValueError: I/O operation on closed file.值错误:对关闭的文件执行I/O操作。

12、csv.DictWriter不好用,换为csv.writer。可以了就是没表头。

13、

14、安装Qt Designer

15、拒绝访问什么鬼。

16、

17、BUG报错:ERROR: Could not install packages due to an EnvironmentError: [WinError 5] ,百度,解决方案如下:在pip install 后面加上 --user + 需要安装的包名。

18、

19、果然可以,继续。

20、

21、擅自把PATH加进去。

22、

23、感觉可以了。

24、配置开发工具。

25、

26、

27、

28、和范例不太一样。

29、添加Py UIC

30、

31、Qt Designer设计界面

32、

33、Error running 'QT Designer': Cannot run program "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\qt5_applications\Qt\bin": CreateProcess error=5, 拒绝访问。(moments ago)

34、用管理员试试,不行。

35、搜索,参考https://blog.csdn.net/tomorrowsummer/article/details/99683061

36、设置参数里PyUIC的执行文件为PyQt5子文件夹uic里的pyuic.py,发现Pyrcc的执行文件为PyQt5文件夹下的pyrcc_main.py

37、不得。

38、搜索QT5 Designer安装

39、参考:https://www.jb51.net/article/170810.htm

40、修改QtDesigner找到安装的designer.exe所在的路径

41、报错

42、

43、This application failed to start because no Qt platform plugin could be

44、此应用程序无法启动,因为没有qt平台插件。

45、initialized.Reinstalling the application may fix this problem.

46、重新安装应用程序可能会解决此问题。

47、各种乱搞试试

48、pip install pyqt5designer,下载不完全。

49、参考:https://blog.csdn.net/u014535666/article/details/103721095

50、https://www.cnblogs.com/blackey/p/10242330.html

51、conda install pyqt5

52、conda install pyqt

53、conda命令安装pyqt5-tools

54、pip install PyQt5-tools -i https://pypi.douban.com/simple --trusted-host=pypi.douban.com

55、等待ing。。。。。。。。。

56、参考:https://www.jianshu.com/p/7fa38ae361d1

57、换一个方法

58、新建一个work环境。。这个不错。

59、下载最新版的sip包,无。。。。

60、

61、

pip install pyqt5

pip install pyqt5-tools

62、不得,再来。

63、Conda

64、开心了,入门到放弃+1.

65、https://blog.csdn.net/g96889/article/details/84400373

66、https://www.cnblogs.com/liming19680104/p/11237330.html

67、https://blog.csdn.net/a359680405/article/details/45074761

68、https://www.zhihu.com/question/51216486

69、

70、还是我乎可以了。

71、https://www.jianshu.com/p/094928ac0b73

72、再来

73、pip install pyqt5designer

74、

75、https://blog.csdn.net/u014535666/article/details/103721095

76、https://www.cnblogs.com/blackey/p/10242330.html

77、https://www.jianshu.com/p/7fa38ae361d1

78、继续。。。。。。。。。。。

79、

80、

81、

82、报错:Error: No such file or directory

83、错误:没有这样的文件或目录

84、

85、Cannot start process,the working directory 'run.ui' does not exist

86、无法启动进程,工作目录‘run.ui’不存在

87、反复把文件存在多个地方。

88、原来是保存在pycharm打开的文件夹下面。

89、

90、继续。。。累

91、

92、不知道挂在哪里了。

93、

94、

95、可以放弃了。。

96、下次搞一下PyQt5

97、https://www.jianshu.com/p/094928ac0b73

98、再抢救一下。

99、https://www.jianshu.com/p/094928ac0b73

100、这里面的代码不知道是写错还是旧了,需要修改一个地方。

101、