Unable to pip install mysqlclient==1.4.6

Hi All,

I am trying to pip install mysqlclient==1.4.6 for one of my projects, but I am getting an error: Microsoft Visual C++ 14.0 is required. Get it with “Build Tools for Visual Studio”: Download Visual Studio 2019 for Windows & Mac

I am ok with installing this Build Tools from Microsoft in my local environment, but my main concern is, is the package really dependent on this? If so how am I going to use this package on Linux server when I move my code to server for test/prod. This Microsoft package is obviously for windows only.

Appreciate your help.

Thanks
Lax

Rather than Visual Studio, on GNU/Linux, installing the MySQLclient
sdist will need GCC and MySQL headers for linking the C extension.
That said, you might consider a pure-Python alternative:

https://pypi.org/project/PyMySQL/

Depending on your use case, the performance difference may be
negligible and the lack of need for compiler and headers makes this
option much more convenient for most users.