在搭建habitat环境的时候执行pip install -e habitat-baselines 命令后出现这个问题,各种方法都试了一下,没有用,这个该怎么解决呢
Building wheel for faster-fifo (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for faster-fifo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-37
creating build/lib.linux-x86_64-cpython-37/faster_fifo_reduction
copying faster_fifo_reduction/__init__.py -> build/lib.linux-x86_64-cpython-37/faster_fifo_reduction
creating build/lib.linux-x86_64-cpython-37/cpp_faster_fifo
copying cpp_faster_fifo/__init__.py -> build/lib.linux-x86_64-cpython-37/cpp_faster_fifo
creating build/lib.linux-x86_64-cpython-37/cpp_faster_fifo/tests
copying cpp_faster_fifo/tests/comparison_tests.py -> build/lib.linux-x86_64-cpython-37/cpp_faster_fifo/tests
copying cpp_faster_fifo/tests/__init__.py -> build/lib.linux-x86_64-cpython-37/cpp_faster_fifo/tests
copying cpp_faster_fifo/tests/test_faster_fifo.py -> build/lib.linux-x86_64-cpython-37/cpp_faster_fifo/tests
running build_ext
building 'faster_fifo' extension
creating build/temp.linux-x86_64-cpython-37
creating build/temp.linux-x86_64-cpython-37/cpp_faster_fifo
creating build/temp.linux-x86_64-cpython-37/cpp_faster_fifo/cpp_lib
gcc -pthread -B /home/mcl/anaconda3/envs/habitat/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I. -Icpp_faster_fifo/cpp_lib -I/home/mcl/anaconda3/envs/habitat/include/python3.7m -c cpp_faster_fifo/cpp_lib/faster_fifo.cpp -o build/temp.linux-x86_64-cpython-37/cpp_faster_fifo/cpp_lib/faster_fifo.o -std=c++11
gcc: error trying to exec 'cc1plus': execvp: 没有那个文件或目录
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for faster-fifo
Failed to build faster-fifo
ERROR: Could not build wheels for faster-fifo, which is required to install pyproject.toml-based projects
方案来自 梦想橡皮擦 狂飙组基于 GPT 编写的 “程秘”
这个错误可能是由于缺少g++编译器引起的。可以尝试安装g++编译器来解决该问题。在Ubuntu系统上,可以使用以下命令安装g++编译器:
sudo apt-get install g++
如果您正在使用其他操作系统,请查找相应的g++编译器安装方法。安装完g++编译器后,再重新执行pip install -e habitat-baselines命令看是否仍有错误。
请问您解决这个问题了吗