I am use Windows 10 system, for my Django project when I try to download,
I install mysqlclient module but not working it displays errors.
when i write command pip install mysqlclient that this error are see.
Using cached mysqlclient-2.1.1.tar.gz (88 kB) Using legacy setup.py install for mysqlclient, since package 'wheel' is not installed. Installing collected packages: mysqlclient Running setup.py install for mysqlclient ... error ERROR: Command errored out with exit status 1: command: 'c:userssachinappdatalocalprogramspythonpython37-32python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\sachin\AppData\Local\Temp\pip-install-ye9s3zyg\mysqlclient\setup.py'"'"'; __file__='"'"'C:\Users\sachin\AppData\Local\Temp\pip-install-ye9s3zyg\mysqlclient\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UserssachinAppDataLocalTemppip-record-yz3e0ytdinstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:userssachinappdatalocalprogramspythonpython37-32Includemysqlclient' cwd: C:UserssachinAppDataLocalTemppip-install-ye9s3zygmysqlclient Complete output (29 lines): running install running build running build_py creating build creating buildlib.win32-3.7 creating buildlib.win32-3.7MySQLdb copying MySQLdb__init__.py -> buildlib.win32-3.7MySQLdb copying MySQLdb_exceptions.py -> buildlib.win32-3.7MySQLdb copying MySQLdbconnections.py -> buildlib.win32-3.7MySQLdb copying MySQLdbconverters.py -> buildlib.win32-3.7MySQLdb copying MySQLdbcursors.py -> buildlib.win32-3.7MySQLdb copying MySQLdbrelease.py -> buildlib.win32-3.7MySQLdb copying MySQLdbtimes.py -> buildlib.win32-3.7MySQLdb creating buildlib.win32-3.7MySQLdbconstants copying MySQLdbconstants__init__.py -> buildlib.win32-3.7MySQLdbconstants copying MySQLdbconstantsCLIENT.py -> buildlib.win32-3.7MySQLdbconstants copying MySQLdbconstantsCR.py -> buildlib.win32-3.7MySQLdbconstants copying MySQLdbconstantsER.py -> buildlib.win32-3.7MySQLdbconstants Studio2022BuildToolsVCToolsMSVC14.38.33130binHostX86x86cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dversion_info=(2,1,1,'final',0)
2
Answers
step 1: first download pipenv
step2: secondly install pipenv
step3: finally install mysqlclient