nvcc fatal : Cannot find compiler ‘cl.exe’ in PATH [How to Solve]

I am testing the installation of the deep learning tool theano. Follow the official website Baby Steps-Algebra to enter step by step.

1
2
3
4
5
6
>>> import theano.tensor as T
>>> from theano import function
>>> x = T.dscalar('x')
>>> y = T.dscalar('y')
>>> z = + y
>>> f = function([x, y], z)

There is no problem with import theano, and no problem with defining x, y, and z. An error was reported when f = function([x, y], z) in the last step.

The error is “nvcc fatal: Cannot find compiler’cl.exe’ in PATH”. It says that cl.exe is missing. I don’t know what this file does. I searched it on Google. Someone said that cl.exe is in a directory similar to “C:\Program Files\Microsoft Visual Studio 10.0\VC\bin”. I searched for it and it turned out to be there. Add this path to the environment variable.

Re-testing, the original error is no longer there, and a new problem comes up, but fortunately, it does not affect the final result. . .

1
2
3
4
5
6
7
8
>>> x = T.dsc
>>> y = T.dsc
>>> z = + y
>>> f = funct
DEBUG: nvcc STDOUT mod.cu
   .................................
>>> f(23)
array(5.0)

 

Similar Posts: