当前位置: 首页 > wzjs >正文

深圳网站哪家强.网站建设的目标

深圳网站哪家强,.网站建设的目标,贵州省城乡建设局网站查,深圳住房和建设局网站登录【isaacgym报错】安装isaacgym运行报错RuntimeError: Error building extension gymtorch 环境配置报错场景报错信息 解决方法 环境配置 CUDA 12.1Python 3.8torch 2.4.1 报错场景 安装完isaacgym、rsl_rl、legged_gym,也就是下图中的步骤均已完成后,…

【isaacgym报错】安装isaacgym运行报错RuntimeError: Error building extension 'gymtorch'

  • 环境配置
  • 报错场景
    • 报错信息
  • 解决方法

环境配置

  • CUDA 12.1
  • Python 3.8
  • torch 2.4.1

报错场景

  • 安装完isaacgym、rsl_rl、legged_gym,也就是下图中的步骤均已完成后,在执行训练任务时报错RuntimeError: Error building extension ‘gymtorch’
    在这里插入图片描述

报错信息

(isaacgym) root@autodl-container-10e447810d-d1eb94d0:~/autodl-tmp/ys/parkour/legged_gym# python legged_gym/scripts/train.py --headless --task go2
Importing module ‘gym_38’ (/root/autodl-tmp/ys/ys_file/isaacgym/python/isaacgym/_bindings/linux-x86_64/gym_38.so)
Setting GYM_USD_PLUG_INFO_PATH to /root/autodl-tmp/ys/ys_file/isaacgym/python/isaacgym/_bindings/linux-x86_64/usd/plugInfo.json
PyTorch version 2.4.1+cu121
Device count 4
/root/autodl-tmp/ys/ys_file/isaacgym/python/isaacgym/_bindings/src/gymtorch
Using /root/.cache/torch_extensions/py38_cu121 as PyTorch extensions root…
Emitting ninja build file /root/.cache/torch_extensions/py38_cu121/gymtorch/build.ninja…
Building extension module gymtorch…
Allowing ninja to set a default number of workers… (overridable by setting the environment variable MAX_JOBS=N)
[1/2] c++ -MMD -MF gymtorch.o.d -DTORCH_EXTENSION_NAME=gymtorch -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=“_gcc” -DPYBIND11_STDLIB=“_libstdcpp” -DPYBIND11_BUILD_ABI=“_cxxabi1011” -isystem /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include -isystem /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/TH -isystem /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/THC -isystem /root/autodl-tmp/miniconda3/envs/isaacgym/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DTORCH_MAJOR=2 -DTORCH_MINOR=4 -c /root/autodl-tmp/ys/ys_file/isaacgym/python/isaacgym/_bindings/src/gymtorch/gymtorch.cpp -o gymtorch.o
FAILED: gymtorch.o
c++ -MMD -MF gymtorch.o.d -DTORCH_EXTENSION_NAME=gymtorch -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=“_gcc” -DPYBIND11_STDLIB=“_libstdcpp” -DPYBIND11_BUILD_ABI=“_cxxabi1011” -isystem /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include -isystem /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/TH -isystem /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/THC -isystem /root/autodl-tmp/miniconda3/envs/isaacgym/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DTORCH_MAJOR=2 -DTORCH_MINOR=4 -c /root/autodl-tmp/ys/ys_file/isaacgym/python/isaacgym/_bindings/src/gymtorch/gymtorch.cpp -o gymtorch.o
In file included from /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h:14:0,
from /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:38,
from /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
from /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
from /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
from /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
from /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
from /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
from /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
from /root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
from /root/autodl-tmp/ys/ys_file/isaacgym/python/isaacgym/_bindings/src/gymtorch/gymtorch.cpp:17:
/root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error “You’re trying to build PyTorch with a too old version of GCC. We need GCC 9 or later.”
#error
^~~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File “/root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/utils/cpp_extension.py”, line 2105, in _run_ninja_build
subprocess.run(
File “/root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/subprocess.py”, line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘ninja’, ‘-v’]’ returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “legged_gym/scripts/train.py”, line 37, in
from legged_gym.envs import *
File “/root/autodl-tmp/ys/parkour/legged_gym/legged_gym/envs/init.py”, line 33, in
from .base.legged_robot import LeggedRobot
File “/root/autodl-tmp/ys/parkour/legged_gym/legged_gym/envs/base/legged_robot.py”, line 38, in
from isaacgym import gymtorch, gymapi, gymutil
File “/root/autodl-tmp/ys/ys_file/isaacgym/python/isaacgym/gymtorch.py”, line 109, in
_import_gymtorch()
File “/root/autodl-tmp/ys/ys_file/isaacgym/python/isaacgym/gymtorch.py”, line 45, in _import_gymtorch
gt = torch.utils.cpp_extension.load(name=“gymtorch”, sources=sources, extra_cflags=cflags, verbose=True)
File “/root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/utils/cpp_extension.py”, line 1312, in load
return _jit_compile(
File “/root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/utils/cpp_extension.py”, line 1722, in _jit_compile
_write_ninja_file_and_build_library(
File “/root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/utils/cpp_extension.py”, line 1834, in _write_ninja_file_and_build_library
_run_ninja_build(
File “/root/autodl-tmp/miniconda3/envs/isaacgym/lib/python3.8/site-packages/torch/utils/cpp_extension.py”, line 2121, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension ‘gymtorch’

  • 报错中提到error: #error “You’re trying to build PyTorch with a too old version of GCC. We need GCC 9 or later.”
  • 但查看gcc版本之后也是符合要求的 很奇怪

解决方法

  • 在这个博主看到关于error: #error “You’re trying to build PyTorch with a too old version of GCC. We need GCC 9 or later.”解决方案

  • 使用命令conda install gxx_linux-64

  • 如果安装之后还是报这个错误,可以试一下卸载pytorch和nvidia相关的所有包,再重新安装即可
    在这里插入图片描述

  • 猜测这个错误比较底层 可能和cuda、torch、gcc编译都有关系,卸载重新安装之后应该就没问题啦

  • 祝大家安装顺利 没有bug~

http://www.dtcms.com/wzjs/535484.html

相关文章:

  • 国外h5分享网站住房和城乡建设部网站防排烟
  • 电商购物平台软件开发商丘seo外包
  • 宜昌市网站建设工装公司联系方式
  • 货代可以从哪些网站开发客户建筑图集网站07fs02图集
  • 中山华企立方网站建设公司个体工商户是否能够做网站
  • 高新企业建设网站价格医疗网站建站需求
  • 网站为什么做静态h5网站建设文章
  • 虚拟币交易网站开发省级网站建设标准
  • 网站建设网页的长宽网站大全软件
  • 网站上线如何做公司名字html购物网站源代码
  • 创意网站建设家装公司排名
  • 什么是网站被黑邢台企业网站建设公司
  • 做期货看资讯什么网站好wordpress 过滤
  • 家具建设网站做网赌需要在哪些网站投广告
  • 企业网站怎么做连接沧州国外网站建设
  • lamp网站开发黄金组...嘉兴备案网站建设
  • 网站建设免费教程网站子域名怎么设置
  • 物业公司网站建设方案邵阳建设银行网站
  • 电子商务专业网站长春网站公司有哪些内容
  • 网站制作流程分为哪七步网站域名到期怎么办
  • 房地产网站建设解决方案郑州 建站 公司
  • 南京网站建设优化求一个好看的网站
  • 海诚网站建设七台河市网站建设
  • 网站怎么做防360拦截年度网站建设工作总结
  • 个人网站制作过程网站建设中左对齐
  • 公司网站html模板南宁制作企业服装
  • 阿里云网站建设和部署框架网店代运营具体做什么
  • 番禺五屏网站建设全面依法治国建设法治中国
  • 广州外贸网站建设开发现在做百度推广有用吗
  • 广州网站设计首选刻互联网推广销售好做吗