1) 意思是,在cmd中执行where cl 失败
2) 配置环境,使cmd中可成功调用cl即可
解决方法:
1)安装Visual Studio
2)添加环境变量:(一下操作都在系统变量里面进行)
- path中添加(注意改为个人安装路径),可用软件everything搜索:
C:\XXX\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x64;
2. 新建环境变量INCLUDE, 添加:(Include可能有多个版本,经验是选择新的)
C:\XXX\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include;
C:\XXX\Windows Kits\10\Include\10.0.18362.0\ucrt;
C:\XXX\Windows Kits\10\Include\10.0.18362.0\um;
C:\XXX\Windows Kits\10\Include\10.0.18362.0\shared;
3. 新建环境变量LIB, 添加:
C:\XXX\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\lib\x64;
C:\XXX\Windows Kits\10\Lib\10.0.18362.0\ucrt\x64;
C:\XXX\Windows Kits\10\Lib\10.0.18362.0\um\x64;
4. 重启cmd,pycharm
5. OK了!