error: command ‘/usr/local/cuda-11.6/bin/nvcc‘ failed with exit code
pytorch c++扩展 python setup install 错误
解决方法
将/home/zyc/miniconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch 下cloneable。h 文件 中 改为下图所示
TORCH_CHECK(copy->parameters_.size() == this->parameters_.size(),"The cloned module does not have the same number of ""parameters as the original module after calling reset(). ""Are you sure you called register_parameter() inside reset() ""and not the constructor?");for (const auto& parameter : named_parameters(/*recurse=*/false)) {auto& tensor = *parameter;auto data = device && tensor.device() != *device ?tensor.to(*device) : autograd::Variable(tensor).clone();copy->parameters_[parameter.key()].set_data(data);}TORCH_CHECK(copy->buffers_.size() == this->buffers_.size(),"The cloned module does not have the same number of ""buffers as the original module after calling reset(). ""Are you sure you called register_buffer() inside reset() ""and not the constructor?");for (const auto& buffer : named_buffers(/*recurse=*/false)) {auto& tensor = *buffer;auto data = device && tensor.device() != *device ?tensor.to(*device) : autograd::Variable(tensor).clone();copy->buffers_[buffer.key()].set_data(data);}TORCH_CHECK(copy->children_.size() == this->children_.size(),"The cloned module does not have the same number of ""child modules as the original module after calling reset(). ""Are you sure you called register_module() inside reset() ""and not the constructor?");
可解决此问题
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing chamfer-0.0.0-py3.7-linux-x86_64.egg
removing '/home/zyc/miniconda3/lib/python3.7/site-packages/chamfer-0.0.0-py3.7-linux-x86_64.egg' (and everything under it)
creating /home/zyc/miniconda3/lib/python3.7/site-packages/chamfer-0.0.0-py3.7-linux-x86_64.egg
Extracting chamfer-0.0.0-py3.7-linux-x86_64.egg to /home/zyc/miniconda3/lib/python3.7/site-packages
chamfer 0.0.0 is already the active version in easy-install.pthInstalled /home/zyc/miniconda3/lib/python3.7/site-packages/chamfer-0.0.0-py3.7-linux-x86_64.egg
Processing dependencies for chamfer==0.0.0
Finished processing dependencies for chamfer==0.0.0
出现此信息提示表示成功
error: command ‘/usr/local/cuda-11.6/bin/nvcc‘ failed with exit code相关推荐
- 【树莓派】error: command ‘/usr/bin/arm-linux-gnueabihf-gcc‘ failed with exit code 1(2021年12月)
(2021年12月21日更新解决方案) 解决方法,请输入以下命令: export CFLAGS=-fcommon pip3 install RPi.GPIO 前提 树莓派 3b Mac 电脑连接 树莓 ...
- xcode编译报错unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1
升级完xcode9.1之后,编译项目出现如下错误: CI今日构建时报出如下错误: /Users/xxx/Library/Developer/Xcode/DerivedData/Snowball-ebl ...
- xcodebuild构建时报错unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1
CI今日构建时报出如下错误: /Users/xxx/Library/Developer/Xcode/DerivedData/Snowball-ebllohyukujrncbaldsfojfjxwep/ ...
- no identity found Command /usr/bin/codesign failed with exit code 1 报错解决方法
no identity found Command /usr/bin/codesign failed with exit code 1 报错解决方法 参考文章: (1)no identity foun ...
- iOS运行错误:Command /Applications/Xcode 2.app/Contents/Developer/usr/bin/actool failed with exit code 25
今天早上一打开电脑运行程序时突然抱Command /Applications/Xcode 2.app/Contents/Developer/usr/bin/actool failed with exi ...
- xcode升级运行报错 Command /usr/bin/codesign failed with exit code 1(api打包出错)
今天xcode从6.4升级到7.2.1最新版本之后,api打包错误,如下 查找了很多文档都没能解决问题,最后直接把证书替换了,成功运行打包. 参考文章:http://blog.csdn.net/jus ...
- iPhone iPhoneSimulator.platform/Developer/usr/bin/clang++ failed with exit code 1 出现这种错误的原因是...
问题:出现Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang++ failed with exi ...
- 【防坑指南】nginx重启后出现[error] open() “/usr/local/var/run/nginx/nginx.pid” failed
重新启动nginx后,出现报错,原因就是下没有nginx文件夹或没有nginx.pid文件,为什么会没有呢? 原因就是每次重新启动,系统都会自动删除文件,所以解决方式就是更改pid文件存储的位置, 打 ...
- XCode 6 出现 no identity found: Command /usr/bin/codesign failed with exit code 1 解决方法汇总...
1, 解决办法,进入开发者账号重建一个 Provisioning Profiles(或配套证书) 文件,把证书添加正确就可以了 (应该是最有效的) 2, 将p12文件重新安装下 3, 在 iPhone ...
最新文章
- 我的Thinkpad T410最近老是出Fan error
- SAP CRM WebClient UI cross workcenter的context cleanup
- 漫步线性代数二十三——行列式公式
- 漫画:如何给女朋友解释什么是系统可用性?| 技术头条
- 超市商品摆放图片_商品摆放舍不得拿、干净又卫生的马来西亚版大润发——NSK超市...
- Mac下Eclipse反编译插件安装
- linux 软键盘输入密码,Linux系统中使用屏幕键盘的方法
- 关于利用Windows权限屏蔽Win10易升
- 根据pdf转换成tif图片
- 研华板卡1742U--瞬时读值 用 instantAiCtrl1 控件
- 软件测试|Vuetify框架的使用
- 用Python做信号处理
- 孢子java_孢子框架-接口访问层、ESB、微服务API GateWay对比
- 在线考试系统(4)——学生端主页设计
- 数字信号处理(五)快速傅里叶变换
- [导入]MAGIC CYNDI魔幻心凌
- win10连接上OpenVpn后发现访问互联网的东西会有些不稳定
- python打开网页被禁止_javascript – “此网站的所有者已根据您的浏览器签名禁止您访问”…在python程序中的网址请求...
- c语言程序设计中国铁道出版社课后题答案,C语言程序设计(中国铁道出版社) 第4章 数组练习题答案003.doc...
- 最快最好用的PHP框架,干货 | 10个最好用的PHP框架,请收好~
热门文章
- Linux平台上文件同步——rsync+inotify之实时同步
- 吉布斯采样(Gibbs Sampling)及相关算法
- Servlet 执行原理
- mac安装homebrew + git + nodejs
- 解决“C2001:常量中有换行符“编译问题
- Android ble开发详解
- 特殊的空格 - ASCII(160)
- matlab图像导数求积分_matlab微积分问题:导数、偏导数
- createCriteria的用法
- PHP两种调用接口方式