Python: How to install mysqldb on windows 7 x64?

后端 未结 3 1811
鱼传尺愫
鱼传尺愫 2021-02-02 13:31

Im trying install Mysql-python on windows x64.

I installed python x64, setuptools (checked on the

3条回答
  •  感动是毒
    2021-02-02 13:54

    "Unable to find vcvarsall.bat" means that you haven't got the necessary Visual Studio directories in your path.

    However, if you are using 64 bit Python then you'll need a 64 bit compiler and Express doesn't come in 64 bit flavours. You could download the SDK MSVC compiler and get that configured but its very hard work.

    If I was you I'd switch to 32 bit Python and you can almost surely get pre-built binaries.

    EDIT

    Pre-built 64 bit binaries as found by piquadrat would be even simpler!

提交回复
热议问题