简体   繁体   English

Python、PyQt5 和 MySql 上的 Windows 有解决方案吗?

[英]Python, PyQt5, and MySql on Windows 10, is there a solution?

I have Python v3.9, PyQt5 v5.15, and MySql 8.1 installed on a Windows 10 64-Bit system and like many (many) others have been struggling with the well documented "QMYSQL driver not loaded" problem. I have Python v3.9, PyQt5 v5.15, and MySql 8.1 installed on a Windows 10 64-Bit system and like many (many) others have been struggling with the well documented "QMYSQL driver not loaded" problem. Over the past week I have read more than 30 articles on how to fix this and I'm just not getting there.在过去的一周里,我已经阅读了 30 多篇关于如何解决这个问题的文章,但我只是没有到达那里。 The MySql Python connector works fine, my angst is only with the missing QMYSQL functionality. MySql Python 连接器工作正常,我担心的只是缺少 QMYSQL 功能。

Has anyone actually gotten this to work?有没有人真的让这个工作?

Is there a specific combination of versions that will allow these 3 tools to work together on Windows?是否有特定的版本组合可以让这 3 个工具在 Windows 上协同工作?


My Windows PATH is currently:我的 Windows 路径当前是:

PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\Go\bin;C:\Users\bobse\AppData\Local\Programs\Python\Python39\Scripts\;c:\Users\bobse\AppData\Local\Programs\Python\Python39\;C:\Users\bobse\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\bobse\AppData\Local\Programs\Python\Python39\;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\bobse\AppData\Local\Microsoft\WindowsApps;C:\Users\bobse\AppData\Roaming\npm;C:\Users\bobse\AppData\Local\GitHubDesktop\bin;C:\Users\bobse\go\bin;

Part of my problem is that I don't understand exactly what files can't be found and where the tools are looking for them.我的部分问题是我不完全了解找不到哪些文件以及工具在哪里寻找它们。 What should I be looking for and where should I be looking for it?我应该寻找什么以及我应该在哪里寻找它?

YES!是的! there is an answer!有答案! It can be done!可以办到!

It took me 60 hours of my time and 7 days, but I have PyQt5, QtDesigner, Python 3.10, MySQL 8.0 all working and talking to each other on a Windows 10 system. It took me 60 hours of my time and 7 days, but I have PyQt5, QtDesigner, Python 3.10, MySQL 8.0 all working and talking to each other on a Windows 10 system.

Be warned, once I found someone who made it work and from this discovered what I had missed, I had to build a new Windows 10 system and load all the pieces in the right order to get it working.请注意,一旦我找到使它工作的人并从中发现我错过的东西,我必须构建一个新的 Windows 10 系统并以正确的顺序加载所有部件以使其工作。

The major piece is a set of Qt libraries for MySQL and MariaDB maintained on "thecodemonkey86" Github site.主要部分是一组 Qt 库,用于 MySQL 和 MariaDB 维护在“thecodemonkey86”ZE1ADBCBB92C622D0ABFZ6 站点1上。 If you want the details, please read through the following thread...如果您想了解详细信息,请阅读以下主题...

qt_mysql_driver issue 29qt_mysql_driver 问题 29

https://github.com/thecodemonkey86/qt_mysql_driver/issues/29https://github.com/thecodemonkey86/qt_mysql_driver/issues/29

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM