[Tutor] Problem installing MySQLdb under windows

Liam Clarke ml.cyresse at gmail.com
Tue Apr 25 16:00:43 CEST 2006


Hi Peter, you can use a different compiler if you have one, such as
mingw32, but I find compiling extensions on Windows is very
problematic.

Any particular features of MySQLdb 1.2.1 you need? 1.2.0 has a Windows
version precompiled -

http://prdownloads.sourceforge.net/mysql-python/MySQL-python.exe-1.2.0.win32-py2.4.zip?download

If you really need to compile it, grab mingw32 and use the --compiler
option for setup.py i.e. setup.py build --compiler mingw32, but I've
had heaps of trouble with including Python headers, so YMMV.

Regards,

Liam Clarke

On 4/26/06, Peter Jessop <pjlists at gmail.com> wrote:
> I am running Python 2.4.3, MySQL 5.0.
> On trying to install MySQLdb 1.2.1 I ran into the following problem.
> "
> D:\Python24\Lib\site-packages\MySQLdb>setup.py build
> running build
> running build_py
> copying MySQLdb\release.py -> build\lib.win32- 2.4\MySQLdb
> running build_ext
> error: The .NET Framework SDK needs to be installed before building
> extensions f
> or Python.
>
> "
> Is it really necessary to install The .NET Framework SDK (354Mb) or is there
> a simpler way?
>
> Thanks for any help
>
> Peter Jessop
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
>


More information about the Tutor mailing list