-[Setup]: Installing "Recast & Detour"... -[install_recast]: [Batch params]: --build-dir "D:\Tools\Carlaproject\Carlagit\carla\carla-ue4-dev\Build\" --generator "Visual Studio 17 2022" -[install_recast]: A "Recast & Detour" installation already exists. -[install_recast]: Delete "D:\Tools\Carlaproject\Carlagit\carla\carla-ue4-dev\Build\recast-install\" if you want to force a rebuild. -[install_recast]: Exiting... -[Setup]: Installing Boost... -[install_boost]: [Batch params]: --build-dir "D:\Tools\Carlaproject\Carlagit\carla\carla-ue4-dev\Build\" --toolset msvc-14.2 --version 1.80.0 -j 16 系统找不到指定的批处理标签 - arg-parse -[Setup]: Ok, and error ocurred, don't panic We have different platforms where you can find some help :) - Make sure you have read the documentation: http://carla.readthedocs.io/en/latest/how_to_build_on_windows/ - If the problem persists, you can ask on our Github's "Building on Windows" issue: https://github.com/carla-simulator/carla/issues/21 - Or just use our Discord channel We'll be glad to help you there :) https://discord.gg/42KJdRj make: *** [setup] 错误 1 我把filelist中代码和perftimer中改成了if def _WIN32的结果是这样 怎么手动安装才正确呢?
时间: 2025-03-09 16:15:22 浏览: 61
解决 CARLA 项目在 Windows 上构建时遇到的 '系统找不到指定的批处理标签 - arg-parse' 错误
当尝试在 Windows 平台上构建 CARLA 项目并遭遇特定错误提示,如“系统找不到指定的批处理标签 - arg-parse”,这通常意味着脚本执行过程中遇到了解析参数的问题。对于提到的具体情况,“Recast & Detour 已经存在且 Boost 安装失败”的问题可能源于多个方面。
环境配置不一致引发的问题
如果 Carla 模拟器版本与通过 pip
安装的 Python 库版本不同步,可能会引起兼容性问题[^1]。因此建议保持两者版本的一致性,避免因 API 或 ABI 不匹配而产生的各种异常行为。
处理 Recast 和 Detour 的冲突
针对 “Recast & Detour” 文件夹已存在的状况,可以考虑先备份这些文件再重新下载官方推荐版本或者更新现有库到最新稳定版来解决问题。确保所使用的依赖项是最新的,并且与其他组件相容。
解决 Boost 安装失败的方法
关于 Boost 安装失败的情况,可以从以下几个角度入手:
确认 Visual Studio 版本:某些情况下,Boost 编译需要特定版本的 MSVC 编译工具链支持。请核实当前环境中的编译器是否满足需求。
设置正确的环境变量:有时由于 PATH 变量未正确配置而导致无法找到必要的命令行工具或头文件路径。检查并调整系统的环境变量以指向正确的目录位置。
使用预编译二进制包:为了避免复杂的源码编译过程带来的麻烦,可以选择从官方网站获取适用于 Windows 的预编译 Boost 二进制分发包进行安装。
最后,在完成上述操作之后再次运行项目的构建流程,观察是否有改善。若仍然存在问题,则需进一步排查其他潜在因素的影响。
# 更新现有的 conda 环境至最新的状态
conda update --all
# 创建一个新的虚拟环境用于隔离开发工作区
conda create -n carla_env python=3.7
# 激活新创建的虚拟环境
conda activate carla_env
# 使用 pip 安装指定版本的 Carla SDK (假设要安装的是0.9.11版本)
pip install carla==0.9.11
相关推荐


















