MySqlclient not installing error

please help me I am stucked with this error for 2 or 3 hours IDK what to do I do a lot of searching but is doesn’t solve me the issue

(storefront-wzGRizV7) C:\Users\Chacha Tech\Desktop\storefront>pipenv install mysqlclient
Installing mysqlclient…
Error: An error occurred while installing mysqlclient!
Error text: Collecting mysqlclient
Using cached mysqlclient-2.0.3.tar.gz (88 kB)
Building wheels for collected packages: mysqlclient
Building wheel for mysqlclient (setup.py): started
Building wheel for mysqlclient (setup.py): finished with status ‘error’
Running setup.py clean for mysqlclient
Failed to build mysqlclient
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient: started
Running setup.py install for mysqlclient: finished with status ‘error’

ERROR: Command errored out with exit status 1:
command: ‘C:\Users\Chacha Tech.virtualenvs\storefront-wzGRizV7\Scripts\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\Chacha Tech\AppData\Local\Temp\pip-install-cd7szoi5\mysqlclient_c4c73e1538204a95adfadc5b574bc565\setup.py’"’"’; file=’"’"‘C:\Users\Chacha Tech\AppData\Local\Temp\pip-install-cd7szoi5\mysqlclient_c4c73e1538204a95adfadc5b574bc565\setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ bdist_wheel -d ‘C:\Users\Chacha Tech\AppData\Local\Temp\pip-wheel-bcypw3ib’
cwd: C:\Users\Chacha Tech\AppData\Local\Temp\pip-install-cd7szoi5\mysqlclient_c4c73e1538204a95adfadc5b574bc565
Complete output (25 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb_init_.py → build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb_exceptions.py → build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb\connections.py → build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb\converters.py → build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb\cursors.py → build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb\release.py → build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb\times.py → build\lib.win-amd64-3.10\MySQLdb
creating build\lib.win-amd64-3.10\MySQLdb\constants
copying MySQLdb\constants_init_.py → build\lib.win-amd64-3.10\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py → build\lib.win-amd64-3.10\MySQLdb\constants
copying MySQLdb\constants\CR.py → build\lib.win-amd64-3.10\MySQLdb\constants
copying MySQLdb\constants\ER.py → build\lib.win-amd64-3.10\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py → build\lib.win-amd64-3.10\MySQLdb\constants
copying MySQLdb\constants\FLAG.py → build\lib.win-amd64-3.10\MySQLdb\constants
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building ‘MySQLdb._mysql’ extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: Microsoft C++ Build Tools - Visual Studio

ERROR: Failed building wheel for mysqlclient
ERROR: Command errored out with exit status 1:
command: ‘C:\Users\Chacha Tech.virtualenvs\storefront-wzGRizV7\Scripts\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\Chacha Tech\AppData\Local\Temp\pip-install-cd7szoi5\mysqlclient_c4c73e1538204a95adfadc5b574bc565\setup.py’"’"’; file=’"’"‘C:\Users\Chacha Tech\AppData\Local\Temp\pip-install-cd7szoi5\mysqlclient_c4c73e1538204a95adfadc5b574bc565\setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record ‘C:\Users\Chacha Tech\AppData\Local\Temp\pip-record-vbho8ho7\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘C:\Users\Chacha Tech.virtualenvs\storefront-wzGRizV7\include\site\python3.10\mysqlclient’
cwd: C:\Users\Chacha Tech\AppData\Local\Temp\pip-install-cd7szoi5\mysqlclient_c4c73e1538204a95adfadc5b574bc565
Complete output (25 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb_init_.py → build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb_exceptions.py → build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb\connections.py → build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb\converters.py → build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb\cursors.py → build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb\release.py → build\lib.win-amd64-3.10\MySQLdb
copying MySQLdb\times.py → build\lib.win-amd64-3.10\MySQLdb
creating build\lib.win-amd64-3.10\MySQLdb\constants
copying MySQLdb\constants_init_.py → build\lib.win-amd64-3.10\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py → build\lib.win-amd64-3.10\MySQLdb\constants
copying MySQLdb\constants\CR.py → build\lib.win-amd64-3.10\MySQLdb\constants
copying MySQLdb\constants\ER.py → build\lib.win-amd64-3.10\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py → build\lib.win-amd64-3.10\MySQLdb\constants
copying MySQLdb\constants\FLAG.py → build\lib.win-amd64-3.10\MySQLdb\constants
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'MySQLdb._mysql' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------

ERROR: Command errored out with exit status 1: ‘C:\Users\Chacha Tech.virtualenvs\storefront-wzGRizV7\Scripts\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\Chacha Tech\AppData\Local\Temp\pip-install-cd7szoi5\mysqlclient_c4c73e1538204a95adfadc5b574bc565\setup.py’"’"’; file=’"’"‘C:\Users\Chacha Tech\AppData\Local\Temp\pip-install-cd7szoi5\mysqlclient_c4c73e1538204a95adfadc5b574bc565\setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record ‘C:\Users\Chacha Tech\AppData\Local\Temp\pip-record-vbho8ho7\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘C:\Users\Chacha Tech.virtualenvs\storefront-wzGRizV7\include\site\python3.10\mysqlclient’ Check the logs for full command output.

Installation Failed

Where you able to update this?

hello Hamza please any luck with this as i am currently stuck