开发者

How can access MySQL with Python?

开发者 https://www.devze.com 2023-03-11 18:30 出处:网络
How can I access MySQL with Python on windows environment ? I took a look to MySQLdb but in the README says:

How can I access MySQL with Python on windows environment ?

I took a look to MySQLdb but in the README says:

"I don't do Windows. However if someone provides me with a package for Windows, I'll make it a开发者_StackOverflow中文版vailable."

So is there easy way to access MySQL on Windows or I should install Red Hat & go from there?


The README doesn't mean MySQLdb isn't available for Windows. It only means that the library's maintainer doesn't provide binaries for Windows.

You can still get these binaries for Windows either by 1) compiling them yourself or 2) getting them compiled from some third party.

I suggest you to do the latter:

  • Check out page "MySQL-python Windows 64bit and 32bit distributions"
  • Locate .exe that matches your OS and Python versions and install it
  • You are done
0

精彩评论

暂无评论...
验证码 换一张
取 消