nvcc fatal : Cannot find compiler 'cl.exe' in PATH解决方法
2024-10-14 10:15:00
我在测试安装的deep learning工具theano。按照官网Baby Steps - Algebra一步步输入。
>>> import theano.tensor as T
>>> from theano import function
>>> x = T.dscalar('x')
>>> y = T.dscalar('y')
>>> z = x + y
>>> f = function([x, y], z)
import theano没有问题,定义x, y, z都没问题。最后一步f = function([x, y], z)的时候报错了。
错误是“nvcc fatal : Cannot find compiler 'cl.exe' in PATH” 说是缺少cl.exe,不知道这个文件做什么,用Google搜索了一下。看到有人说cl.exe在类似“C:\Program Files\Microsoft Visual Studio 10.0\VC\bin”的目录下。找了找果然有,把这个路径加入环境变量。
重新测试,原来那个报错不再有了,又出来一个新问题,不过好在不影响最后结果。。。
>>> x = T.dsc
>>> y = T.dsc
>>> z = x + y
>>> f = funct
DEBUG: nvcc STDOUT mod.cu
.................................
>>> f(2, 3)
array(5.0)
最新文章
- GetLastError()函数返回值及含义
- 高性能javascript学习笔记系列(4) -算法和流程控制
- Android GridView的使用
- Git的搭建和使用技巧完整精华版
- 2016年12月14日 星期三 --出埃及记 Exodus 21:9
- nyoj 76 超级台阶
- vim使用手册
- C 再识数组指针 指针数组的概念
- android 随手记 自定义广播通知栏
- Twenty Newsgroups Classification任务之二seq2sparse
- 服务器如何防ssh服务暴力破解??
- JS中创建自定义对象的方法
- AppiumDesktop用法介绍
- Android 开发笔记___FrameLayout
- CF 441E Valera and Number
- DaishaPocedureOfMine(代码)
- flask自动代码自动补全
- react组件父传子
- css position小结
- JavaScript权威指南--WEB浏览器中的javascript
热门文章
- 深入浅出设计模式——装饰模式(Decorator Pattern)
- 学习mongo系列(十)MongoDB 备份(mongodump)与恢复(mongorerstore) 监控(mongostat mongotop)
- js之oop <;四>;对象管理
- Ubuntu安装SSH服务
- 机器学习职位 &; 面经
- 能源项目xml文件 -- springMVC-servlet.xml -- default-lazy-init
- CentOS中iptables防火墙 开放80端口方法
- python新技能get——看!源!码!
- 用JDBC访问MySQL
- Shell脚本的追踪与debug