To install some Python packages, in attempting to address this message:
Microsoft Visual C++ 14.0 or greater is required.
Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
by installing Visual Studio Build tools 2022 ('Desktop Development with C++' option, including: MSVC v143, Windows10 SDK 10.0.19041.0, and others), when starting the command prompt (shortcut in the start menu) at either of:
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\VsDevCmd.bat"
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
this message appears in the console:
\intel\icls was unexpected at this time.
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools>
rather than what I've seen on a working test PC (where the C++ error no longer appears after installed):
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.3.3
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools>
I've also tried running pip from this directory (a suggestion from another post). The Visual C++ 14 requirement seems to often cause errors:
https://github.com/benfred/implicit/issues/76
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
, however it seems there is a problem with the build tools in my installation specifically. To clarify - in the working test PC, the 'C++ is required' error no longer appears, however it still appears in this one. Is there a way to fix this?
edit: another attempted based on:
"Intel\iCLS was unexpected" error during python cythonize
to check that there are no quotes in the PATH. There weren't, however when I temporarily deleted
c:\program files (x86)\intel\icls client\;
c:\program files\intel\icls client\;
from PATH, the error message changes to
\intel\intel(r) was unexpected at this time.
however, that is 4 path items ahead (the other in between are paths in
c:\windows\...
Edit: There were invisible characters ... so build tools are okay (though now getting pip errors, different issue I suppose).