The exception seems to be generated by the mesonpy package , which is a wrapper around the meson build system. To install fastai from source, you need a working C compiler such as gcc, clang, cl(comes with C/C++ SDK of Visual Studio). Install any of these compilers and have them added to the PATH environment variable.