Error: C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

5,084 views
Skip to first unread message

Rupam Hazra

unread,
Jul 9, 2018, 5:07:51 AM7/9/18
to Django users
C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2.

Please i need help.

Kasper Laudrup

unread,
Jul 9, 2018, 5:10:57 AM7/9/18
to django...@googlegroups.com
Hi Rupam,
Which error message did the compiler (cl.exe) give you?

Kind regards,

Kasper Laudrup

Rupam Hazra

unread,
Sep 2, 2018, 9:15:49 AM9/2/18
to Django users
Hi,

I am stuck with this issue when i am installing mysqlclient this issue 

  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox
 /W3 /GL /DNDEBUG /MD -Dversion_info=(1,3,1,'final',1) -D__version__=1.3.1 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\
include" -IC:\Python37\include -IC:\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MS
VC\14.15.26726\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include
" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.171
34.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include
\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /Tc_mysql.c /Fobuild\temp.win-amd64
-3.7\Release\_mysql.obj /Zl
    _mysql.c
    _mysql.c(40): fatal error C1083: Cannot open include file: 'my_config.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86
\\x64\\cl.exe' failed with exit status 2

Please help me out.

Kasper Laudrup

unread,
Sep 2, 2018, 10:04:15 AM9/2/18
to django...@googlegroups.com
Hi Rupam,

On 02/09/2018 15.15, Rupam Hazra wrote:
> Hi,
>
> I am stuck with this issue when i am installing mysqlclient this issue
>

Installing mysqlclient from source on Windows is definitely not related
to Django in any way, so you would be much better of asking your
question on a mysql related list/forum.

I don't understand why you want to build it yourself though, wouldn't it
be easier just to use some of the installation packages already made for
Windows?

Kind regards,

Kasper Laudrup

Okware Aldo

unread,
Sep 2, 2018, 10:08:28 AM9/2/18
to django...@googlegroups.com
Use pymysql package instead.

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5cbe363f-4020-57e5-8aba-4e5bdcc2beeb%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.

Gagan Kalia

unread,
Sep 2, 2018, 11:14:18 AM9/2/18
to django...@googlegroups.com
What Python distribution are you using on windows? What command are you using when you see this error?

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Rupam Hazra

unread,
Sep 2, 2018, 11:52:57 AM9/2/18
to Django users
hi

I wan to install this pip install mysqlclient==1.3.12 and geting errors
Reply all
Reply to author
Forward
0 new messages