Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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)MySQLMySQL Connector C 6.0.2include" "-Ic:usersmrnonameanaconda3include" "-Ic:
usersmrnonameanaconda3include" /Tc_mysql.c /Fobuild	emp.win-amd64-3.5Release/
_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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
137 views
Welcome To Ask or Share your Answers For Others

1 Answer

Did you miss this option in the Visual Studio 2017 Setup?

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...