On Fri, Jan 3, 2020 at 5:44 AM Jimmy Lukwago <jimmylukwago18@gmail.com> wrote:
--On Wed, Jan 1, 2020, 15:59 Mohd Akram <userakram09@gmail.com> wrote:--i am using python 3.8 and django 1.11.22PS C:\WINDOWS\system32> pip install mysqlclientCollecting mysqlclientInstalling collected packages: mysqlclientRunning setup.py install for mysqlclient ... errorERROR: Command errored out with exit status 1:command: 'c:\users\admin\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-olk1oy74\\mysqlclient\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-olk1oy74\\mysqlclient\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-gq4a004x\install-record.txt' --single-version-externally-managed --compilecwd: C:\Users\Admin\AppData\Local\Temp\pip-install-olk1oy74\mysqlclient\Complete output (30 lines):running installrunning buildrunning build_pycreating buildcreating build\lib.win32-3.8creating build\lib.win32-3.8\MySQLdbcopying MySQLdb\__init__.py -> build\lib.win32-3.8\MySQLdbcopying MySQLdb\_exceptions.py -> build\lib.win32-3.8\MySQLdbcopying MySQLdb\compat.py -> build\lib.win32-3.8\MySQLdbcopying MySQLdb\connections.py -> build\lib.win32-3.8\MySQLdbcopying MySQLdb\converters.py -> build\lib.win32-3.8\MySQLdbcopying MySQLdb\cursors.py -> build\lib.win32-3.8\MySQLdbcopying MySQLdb\release.py -> build\lib.win32-3.8\MySQLdbcopying MySQLdb\times.py -> build\lib.win32-3.8\MySQLdbcreating build\lib.win32-3.8\MySQLdb\constantscopying MySQLdb\constants\__init__.py -> build\lib.win32-3.8\MySQLdb\constantscopying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.8\MySQLdb\constantscopying MySQLdb\constants\CR.py -> build\lib.win32-3.8\MySQLdb\constantscopying MySQLdb\constants\ER.py -> build\lib.win32-3.8\MySQLdb\constantscopying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.8\MySQLdb\constantscopying MySQLdb\constants\FLAG.py -> build\lib.win32-3.8\MySQLdb\constantsrunning build_extbuilding 'MySQLdb._mysql' extensioncreating build\temp.win32-3.8creating build\temp.win32-3.8\Releasecreating build\temp.win32-3.8\Release\MySQLdbC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dversion_info=(1,4,6,'final',0) -D__version__=1.4.6 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\include\mariadb" -Ic:\users\admin\appdata\local\programs\python\python38-32\include -Ic:\users\admin\appdata\local\programs\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.24.28314\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /TcMySQLdb/_mysql.c /Fobuild\temp.win32-3.8\Release\MySQLdb/_mysql.obj /Zl /D_CRT_SECURE_NO_WARNINGS_mysql.cMySQLdb/_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directoryerror: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2----------------------------------------ERROR: Command errored out with exit status 1: 'c:\users\admin\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-olk1oy74\\mysqlclient\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-olk1oy74\\mysqlclient\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-gq4a004x\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8261e691-3f67-4c14-a4e7-ee1094fa2653%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN793KoNx9ECrgYNSL3N4WihgboYfjckYoHOnNYK5m3iebSS3g%40mail.gmail.com.
I found this that looks useful: https://stackoverflow.com/questions/51294268/pip-install-mysqlclient-returns-fatal-error-c1083-cannot-open-file-mysql-h.
-Jorge
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANfN%3DK8yRVqGTrhvn4FQBRBAOeqzePhY8t3h-E_7Z0SHBOY0Mw%40mail.gmail.com.
No comments:
Post a Comment