how to fix 'failed with exit status 2' during installation of mysqlclient

i am getting such error and my goal was to install mysqlclient in django project in order to be connected to the mysql database

pip install mysqlclient

pip install mysqlclient Collecting mysqlclient Using cached https://files.pythonhosted.org/packages/73/79/67ddf24ac31b05d741f0ac87fa612c7a11bab1b39b8270ed7344d149f8af/mysqlclie nt-1.4.2.tar.gz Installing collected packages: mysqlclient Running setup.py install for mysqlclient ... error Complete output from command c:\users\grey-space\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\GREY-S~1\AppData\Local\Temp\pip-install-07aotna9\mysqlclient\setup.py';f=getattr(tokenize, 'op en', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users \GREY-S~1\AppData\Local\Temp\pip-record-f6xsvf5v\install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build\lib.win32-3.7 creating build\lib.win32-3.7\MySQLdb copying MySQLdb__init__.py -> build\lib.win32-3.7\MySQLdb copying MySQLdb_exceptions.py -> build\lib.win32-3.7\MySQLdb copying MySQLdb\compat.py -> build\lib.win32-3.7\MySQLdb copying MySQLdb\connections.py -> build\lib.win32-3.7\MySQLdb copying MySQLdb\converters.py -> build\lib.win32-3.7\MySQLdb copying MySQLdb\cursors.py -> build\lib.win32-3.7\MySQLdb copying MySQLdb\release.py -> build\lib.win32-3.7\MySQLdb copying MySQLdb\times.py -> build\lib.win32-3.7\MySQLdb creating build\lib.win32-3.7\MySQLdb\constants copying MySQLdb\constants__init__.py -> build\lib.win32-3.7\MySQLdb\constants copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.7\MySQLdb\constants copying MySQLdb\constants\CR.py -> build\lib.win32-3.7\MySQLdb\constants copying MySQLdb\constants\ER.py -> build\lib.win32-3.7\MySQLdb\constants copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.7\MySQLdb\constants copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.7\MySQLdb\constants running build_ext building 'MySQLdb._mysql' extension creating build\temp.win32-3.7 creating build\temp.win32-3.7\Release creating build\temp.win32-3.7\Release\MySQLdb C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox / W3 /GL /DNDEBUG /MD -Dversion_info=(1,4,2,'final',0) -D__version__=1.4.2 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\incl ude\mariadb" -Ic:\users\grey-space\appdata\local\programs\python\python37-32\include -Ic:\users\grey-space\appdata\local\programs\p ython\python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include " "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Win dows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86) \Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program File s (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /TcMyS QLdb/_mysql.c /Fobuild\temp.win32-3.7\Release\MySQLdb/_mysql.obj /Zl /D_CRT_SECURE_NO_WARNINGS _mysql.c MySQLdb/_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\ x86\cl.exe' failed with exit status 2

----------------------------------------

Command "c:\users\grey-space\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;file='C:\ Users\GREY-S~1\AppData\Local\Temp\pip-install-07aotna9\mysqlclient\setup.py';f=getattr(tokenize, 'open', open)(file);cod e=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\GREY-S~1\AppData\Local\ Temp\pip-record-f6xsvf5v\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\GRE Y-S~1\AppData\Local\Temp\pip-install-07aotna9\mysqlclient\

im expecting to have mysqlclient installed