Visual Studio 2017 和 cl.exe 错误 [英] Visual studio 2017 and the cl.exe error
问题描述
我正在尝试在 Windows 中运行以下命令:
pip install flask-sqlalchemy mysql-python
但我收到以下错误:
cl.exe/c/nologo/Ox/W3/GL/DNDEBUG/MD -Dversion_info=(1,2,5,'final',1)-D__version__=1.2.5 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" "-Ic:\users\mrnoname\anaconda3\include" "-Ic:\users\mrnoname\anaconda3\include"/Tc_mysql.c/Fobuild\temp.win-amd64-3.5\Release/_mysql.obj/Z1错误:命令cl.exe"失败:没有这样的文件或目录
我查找了 cl.exe 错误并在 SO 上找到了一个线程.
I am trying to run the following command in Windows:
pip install flask-sqlalchemy mysql-python
But I get the following error:
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG / MD -Dversion_info=(1,2,5,'final',1)
-D__version__=1.2.5 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" "-Ic:\users\mrnoname\anaconda3\include" "-Ic:
\users\mrnoname\anaconda3\include" /Tc_mysql.c /Fobuild\temp.win-amd64-3.5\Release/
_mysql.obj /Z1
error: command 'cl.exe' failed: No such file or directory
I looked up cl.exe error and found a thread on SO.
Visual studio doesn't have cl.exe
Visual Studio 2015 doesn't install C++ by default. You have to rerun the setup, select Modify and then check Programming Language -> C++
But for Visual Studio 2017, I don't see such an option. There is no "Programming Language" option to select C++.
I tried installing most of the C++ options (skipping only ones like designed specifically for gaming or other things irrelevant to me) but this didn't solve it.
Does anyone have suggestions for how to correct this for Visual Studio Community 2017?
Did you miss this option in the Visual Studio 2017 Setup?
这篇关于Visual Studio 2017 和 cl.exe 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!