![]() Running setup.py install for mysqlclient. Installing collected packages: mysqlclient MySQLdb/_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directoryĮrror: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 2ĮRROR: Failed building wheel for mysqlclient errorĮRROR: Command errored out with exit status 1:Ĭommand: 'C:\Program Files (x86)\Python\python.exe' -u -c 'import sys, setuptools, tokenize sys.argv = '"'"'C:\\Users\\Patrik\\AppData\\Local\\Temp\\pip-install-0vmm7fdx\\mysqlclient\\setup.py'"'"' _file_='"'"'C:\\Users\\Patrik\\AppData\\Local\\Temp\\pip-install-0vmm7fdx\\mysqlclient\\setup.py'"'"' f=getattr(tokenize, '"'"'open'"'"', open)(_file_) code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"') f.close() exec(compile(code, _file_, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Patrik\AppData\Local\Temp\pip-wheel-o3ba369p' -python-tag cp37Ĭwd: C:\Users\Patrik\AppData\Local\Temp\pip-install-0vmm7fdx\mysqlclient\Ĭopying MySQLdb\_init_.py -> build\lib.win-amd64-3.7\MySQLdbĬopying MySQLdb\_exceptions.py -> build\lib.win-amd64-3.7\MySQLdbĬopying MySQLdb\compat.py -> build\lib.win-amd64-3.7\MySQLdbĬopying MySQLdb\connections.py -> build\lib.win-amd64-3.7\MySQLdbĬopying MySQLdb\converters.py -> build\lib.win-amd64-3.7\MySQLdbĬopying MySQLdb\cursors.py -> build\lib.win-amd64-3.7\MySQLdbĬopying MySQLdb\release.py -> build\lib.win-amd64-3.7\MySQLdbĬopying MySQLdb\times.py -> build\lib.win-amd64-3.7\MySQLdbĬreating build\lib.win-amd64-3.7\MySQLdb\constantsĬopying MySQLdb\constants\_init_.py -> build\lib.win-amd64-3.7\MySQLdb\constantsĬopying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-3.7\MySQLdb\constantsĬopying MySQLdb\constants\CR.py -> build\lib.win-amd64-3.7\MySQLdb\constantsĬopying MySQLdb\constants\ER.py -> build\lib.win-amd64-3.7\MySQLdb\constantsĬopying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-3.7\MySQLdb\constantsĬopying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-3.7\MySQLdb\constantsĬreating build\temp.win-amd64-3.7\ReleaseĬreating build\temp.win-amd64-3.7\Release\MySQLdbĬ:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dversion_info=(1,4,4,'final',0) -D_version_=1.4.4 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\include\mariadb" "-IC:\Program Files (x86)\Python\include" "-IC:\Program Files (x86)\Python\include" /TcMySQLdb/_mysql.c /Fobuild\temp.win-amd64-3.7\Release\MySQLdb/_mysql.obj /Zl /D_CRT_SECURE_NO_WARNINGS Collecting mysqlclientīuilding wheels for collected packages: mysqlclientīuilding wheel for mysqlclient (setup.py). I tried downloading Python 64 bits downloading the wheels, adding cl.exe to path. So I downloaded the wheel package for windows, as some other stackoverflow answer said. I uninstalled VSCode, installed Visual Studio Build Tools, and I am getting this errors whenever I do python -m pip install mysqlclient.One, cl.exe wasnt added to my path, so I did, but it still says error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 2 ![]() I needed Visual C++ 2015, but I had them cuz my text editors is VSCode. ![]() So I downloaded Python 32 bits 1st, then I did ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |