Anaconda3 used to work flawlessly when installing Python packages that requires C extension with Visual Studio 2015 installed. However, since Visual Studio 2017 no longer include the C++ CLI compilation tools under PATH, errors like below appears when trying to install a TPyhon package that requires compilation of native extension.
error: command ‘cl.exe’ failed: No such file or directory
1 | C:\Users\mengx>pip install fasttext --no-cache-dir |
Here’s a rather easy fix:
- Ensure that compiler tools are installed. You can do that by running Visual Studio Installer.

- Open x64 Native Tools Command Prompt for VS 2017

- Run pip install inside this command prompt
