git-sh-setup: file not found 解决

博客主要解决git操作时出现git-sh-setup: file not found的问题。解决方法是在PATH变量中添加两个路径(按电脑中Git安装位置确定),介绍了PATH变量添加方法,需在用户变量里编辑path,分两次添加对应路径,点两次确定,最后重启电脑。

问题:
git 相关操作的时候报 git-sh-setup: file not found

解决方法:
在 PATH 变量中添加下面两个路径:(具体路径按照你电脑中Git 安装的位置来定)

D:\programFile\Git\usr\bin

D:\programFile\Git\mingw64\libexec\git-core

然后重启电脑就可以了。

PATH 变量添加方法:
右击桌面 此电脑 图标
------- 选择 属性
------- 选择 高级系统设置
------- 选择 环境变量
------- 在用户变量里 选择 path 然后点 编辑
------- 会有个弹窗,点击 新建,然后把自己电脑中对应上面文件的路径分两次加进去
------- 一定要点确定,点完之后在 高级系统设置 弹窗里还要再点一次确定(总共点两次确定
------- 然后重启电脑即可

[2025-09-24 07:48:33.807] Extension version: 0.104.2 [2025-09-24 07:48:33.808] L10N bundle: file:///c%3A/Users/a/.vscode/extensions/ms-vscode-remote.remote-wsl-0.104.2/l10n/bundle.l10n.zh-cn.json [2025-09-24 07:48:33.817] authorityHierarchy: wsl+Ubuntu-18.04 [2025-09-24 07:48:33.817] WSL extension activating for a local WSL instance [2025-09-24 07:48:33.843] Download in background is enabled [2025-09-24 07:48:33.844] Resolving wsl+Ubuntu-18.04, resolveAttempt: 1 [2025-09-24 07:48:33.844] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --status [2025-09-24 07:48:33.912] WSL feature installed: true (wsl --status), using utf-8 encoding [2025-09-24 07:48:33.913] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --list --verbose [2025-09-24 07:48:33.958] 1 distros found [2025-09-24 07:48:33.959] Starting VS Code Server inside WSL (wsl2) [2025-09-24 07:48:33.959] Windows build: 26100. Multi distro support: available. WSL path support: enabled [2025-09-24 07:48:33.960] Scriptless setup: false [2025-09-24 07:48:33.960] No shell environment set or found for current distro. [2025-09-24 07:48:34.098] WSL daemon log file: [2025-09-24 07:48:34.100] Probing if server is already installed: if [ -d ~/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf 'alpine-'; fi; uname -m; [2025-09-24 07:48:34.101] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu-18.04 -e sh -c if [ -d ~/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf 'alpine-'; fi; uname -m; [2025-09-24 07:48:42.124] Probing result: x86_64 [2025-09-24 07:48:42.125] No server install found in WSL, needs linux-x64 [2025-09-24 07:48:42.125] Getting server from client side [2025-09-24 07:48:42.126] Downloading VS Code Server stable - f220831ea2d946c0dcb0f3eaa480eb435a2c1260 into C:\Users\a\vscode-remote-wsl\stable\f220831ea2d946c0dcb0f3eaa480eb435a2c1260\vscode-server-stable-linux-x64.tar.gz. [2025-09-24 07:48:42.164] Unable to download server on client side: Error: Request downloadRequest failed with message: read ECONNRESET. Will try to download on WSL side. [2025-09-24 07:48:42.165] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu-18.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" f220831ea2d946c0dcb0f3eaa480eb435a2c1260 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=2492281583-3324208731-904610584-1391618391 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all' [2025-09-24 07:48:42.354] Setting up server environment: Looking for /home/xyx/.vscode-server/server-env-setup. Not found. [2025-09-24 07:48:42.354] WSL version: 6.6.87.2-microsoft-standard-WSL2 Ubuntu-18.04 [2025-09-24 07:48:42.354] Updating VS Code Server to version f220831ea2d946c0dcb0f3eaa480eb435a2c1260 [2025-09-24 07:48:42.354] Removing previous installation... [2025-09-24 07:48:42.354] Installing VS Code Server for Linux x64 (f220831ea2d946c0dcb0f3eaa480eb435a2c1260) [2025-09-24 07:48:42.354] Downloading: 100% [2025-09-24 07:48:42.354] Failed [2025-09-24 07:48:42.355] --2025-09-24 15:48:42-- https://update.code.visualstudio.com/commit:f220831ea2d946c0dcb0f3eaa480eb435a2c1260/server-linux-x64/stable [2025-09-24 07:48:42.355] Connecting to 127.0.0.1:50778... connected. [2025-09-24 07:48:42.355] Unable to establish SSL connection. [2025-09-24 07:48:42.355] ERROR: Failed to download https://update.code.visualstudio.com/commit:f220831ea2d946c0dcb0f3eaa480eb435a2c1260/server-linux-x64/stable to /home/xyx/.vscode-server/bin/f220831ea2d946c0dcb0f3eaa480eb435a2c1260-1758700122.tar.gz [2025-09-24 07:48:42.355] 有关启动问题的帮助,请转到 https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
09-25
drwxr-xr-x 2 root root 4096 Oct 3 08:09 generic drwxr-xr-x 2 root root 4096 Oct 3 08:09 pi -bash: .: filename argument required .: usage: . filename [arguments] root@orangepizero3:~/teslausb/teslausb/teslausb# cd teslausb Cloning into 'teslausb'... remote: Enumerating objects: 6850, done. remote: Counting objects: 100% (17/17), done. remote: Compressing objects: 100% (12/12), done. remote: Total 6850 (delta 7), reused 11 (delta 5), pack-reused 6833 (from 2) Receiving objects: 100% (6850/6850), 2.71 MiB | 76.00 KiB/s, done. Resolving deltas: 100% (4281/4281), done. root@orangepizero3:~/teslausb/teslausb# ls -l setup/ total 8 drwxr-xr-x 2 root root 4096 Oct 3 08:05 generic drwxr-xr-x 2 root root 4096 Oct 3 08:05 pi root@orangepizero3:~/teslausb/teslausb# sed -i 's/raspberrypi/orangepi/g' setup/pi/pi-setup.sh sed: can't read setup/pi/pi-setup.sh: No such file or directory root@orangepizero3:~/teslausb/teslausb# sudo setup/pi/pi-setup.sh sudo: setup/pi/pi-setup.sh: command not found root@orangepizero3:~/teslausb/teslausb# ls -l setup/ total 8 drwxr-xr-x 2 root root 4096 Oct 3 08:05 generic drwxr-xr-x 2 root root 4096 Oct 3 08:05 pi root@orangepizero3:~/teslausb/teslausb# git clone https://github.com/marcone/teslausb.git cd teslausb ls -l setup/ # 显示有generic和pi两个目录 . Cloning into 'teslausb'... ^Cot@orangepizero3:~/teslausb/teslausb/teslausb#2.29 MiB/s, done.33 (from 2) root@orangepizero3:~/teslausb/teslausb/teslausb# ~/teslausb/teslausb/setup/pi/pi-setup.sh -bash: /root/teslausb/teslausb/setup/pi/pi-setup.sh: No such file or directory root@orangepizero3:~/teslausb/teslausb/teslausb#
10-04
Installing pytorch3d ... Collecting git+https://github.com/facebookresearch/pytorch3d.git@stable Cloning https://github.com/facebookresearch/pytorch3d.git (to revision stable) to /tmp/pip-req-build-zc_lab1v Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/pytorch3d.git /tmp/pip-req-build-zc_lab1v fatal: 无法访问 'https://github.com/facebookresearch/pytorch3d.git/':Failed to connect to github.com port 443 after 134752 ms: 连接超时 error: subprocess-exited-with-error × git clone --filter=blob:none --quiet https://github.com/facebookresearch/pytorch3d.git /tmp/pip-req-build-zc_lab1v did not run successfully. │ exit code: 128 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × git clone --filter=blob:none --quiet https://github.com/facebookresearch/pytorch3d.git /tmp/pip-req-build-zc_lab1v did not run successfully. │ exit code: 128 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Adjusting code in sapien/wrapper/urdf_loader.py ... Adjusting code in mplib/planner.py ... Installing Curobo ... 正克隆到 'curobo'... fatal: 无法访问 'https://github.com/NVlabs/curobo.git/':Failed to connect to github.com port 443 after 133421 ms: 连接超时 script/_install.sh: 第 53 行: cd: curobo: 没有那个文件或目录 Obtaining file:///home/wsh/RoboTwin/envs ERROR: file:///home/wsh/RoboTwin/envs does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found. Installation basic environment complete! You need to: 1. (Important!) Download asserts from huggingface. 2. Install requirements for running baselines. (Optional) See INSTALLATION.md for more instructions. 向我解释一下以上出现的问题是什么?是哪些文件下载失败?下载之后我应该存在哪条路径?
10-25
hanxu@hanxu-OptiPlex-7090:~/桌面/carla-ue4-dev$ make PythonAPI ARGS="--python-version=3.10" parse-options: 未识别的选项 "--python-version=3.10" BuildUE4Plugins.sh: Downloading STREETMAP plugin. HEAD 目前位于 260273d Correct descriptor BuildUE4Plugins.sh: StreetMap Success! Setup.sh: Generating CMake configuration files. Setup.sh: boost-1.84.0-c10 already installed. Setup.sh: rpclib-carla-callbacks-c10 already installed. Setup.sh: gtest-1.8.1-c10 already installed. Setup.sh: recast-c10 already installed. Setup.sh: Libpng already installed. Setup.sh: Xerces-c already installed. Setup.sh: Eigen already installed. Setup.sh: Sqlite already installed. Setup.sh: PROJ already installed. Setup.sh: Patchelf already installed. fatal: 不是 git 仓库(或者任何父目录):.git fatal: 不是 git 仓库(或者任何父目录):.git fatal: 不是 git 仓库(或者任何父目录):.git Setup.sh: CARLA version -dirty. Setup.sh: Success! parse-options: 未识别的选项 "--python-version=3.10" BuildLibCarla.sh: Building LibCarla "Client.Release" configuration. ninja: no work to do. [0/1] Install the project... -- Install configuration: "Client" BuildLibCarla.sh: Success! parse-options: 未识别的选项 "--python-version=3.10" BuildOSM2ODR.sh: Building OSM2ODR. -- Eclipse version is set to 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong. -- CMAKE_BINARY_DIR: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-build -- CMAKE_SOURCE_DIR: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-source -- -- Platform: -- Host: Linux-6.8.0-87-generic x86_64 -- Target: Linux-6.8.0-87-generic x86_64 -- CMake: 3.22.1 -- CMake generator: Ninja -- CMake build tool: /usr/bin/ninja -- Compiler: Clang 10.0.1 -- -- Found Proj: /home/hanxu/桌面/carla-ue4-dev/Build/proj-install/lib/libproj.a -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) -- Enabled features: Linux-6.8.0-87-generic x86_64 Clang 10.0.1 Release Proj -- Configuring done -- Generating done -- Build files have been written to: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-build ninja: no work to do. [0/1] Install the project... -- Install configuration: "Release" -- Up-to-date: /home/hanxu/桌面/carla-ue4-dev/PythonAPI/carla/dependencies/lib/libosm2odr.a -- Up-to-date: /home/hanxu/桌面/carla-ue4-dev/PythonAPI/carla/dependencies/include/OSM2ODR.h /home/hanxu/UnrealEngine_4.26/Engine/Source/ThirdParty/Linux/LibCxx/include/c++/v1 /home/hanxu/UnrealEngine_4.26/Engine/Source/ThirdParty/Linux/LibCxx/lib/Linux/x86_64-unknown-linux-gnu -- Eclipse version is set to 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong. -- CMAKE_BINARY_DIR: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-build-server -- CMAKE_SOURCE_DIR: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-source -- -- Platform: -- Host: Linux-6.8.0-87-generic x86_64 -- Target: Linux-6.8.0-87-generic x86_64 -- CMake: 3.22.1 -- CMake generator: Ninja -- CMake build tool: /usr/bin/ninja -- Compiler: Clang 10.0.1 -- -- Found Proj: /home/hanxu/桌面/carla-ue4-dev/Build/proj-install-server/lib/libproj.a -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) -- Enabled features: Linux-6.8.0-87-generic x86_64 Clang 10.0.1 Release Proj -- Configuring done -- Generating done -- Build files have been written to: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-build-server ninja: no work to do. [0/1] Install the project... -- Install configuration: "Release" -- Up-to-date: /home/hanxu/桌面/carla-ue4-dev/Unreal/CarlaUE4/Plugins/Carla/CarlaDependencies/lib/libosm2odr.a -- Up-to-date: /home/hanxu/桌面/carla-ue4-dev/Unreal/CarlaUE4/Plugins/Carla/CarlaDependencies/include/OSM2ODR.h -- Eclipse version is set to 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong. -- CMAKE_BINARY_DIR: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-build-server -- CMAKE_SOURCE_DIR: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-source -- -- Platform: -- Host: Linux-6.8.0-87-generic x86_64 -- Target: Linux-6.8.0-87-generic x86_64 -- CMake: 3.22.1 -- CMake generator: Ninja -- CMake build tool: /usr/bin/ninja -- Compiler: Clang 10.0.1 -- -- Found Proj: /home/hanxu/桌面/carla-ue4-dev/Build/proj-install-server/lib/libproj.a -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) -- Enabled features: Linux-6.8.0-87-generic x86_64 Clang 10.0.1 Release Proj -- Configuring done -- Generating done -- Build files have been written to: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-build-server ninja: no work to do. [0/1] Install the project... -- Install configuration: "Release" -- Up-to-date: /home/hanxu/桌面/carla-ue4-dev/Unreal/CarlaUE4/Plugins/Carla/CarlaDependencies/lib/libosm2odr.a -- Up-to-date: /home/hanxu/桌面/carla-ue4-dev/Unreal/CarlaUE4/Plugins/Carla/CarlaDependencies/include/OSM2ODR.h BuildOSM2ODR.sh: OSM2ODR Success! BuildPythonAPI.sh: Building Python API wheel for Python 3.10. * Creating venv isolated environment... * Installing packages in isolated environment... (distro, setuptools, wheel) Collecting distro Downloading distro-1.9.0-py3-none-any.whl (20 kB) Collecting wheel Downloading wheel-0.45.1-py3-none-any.whl (72 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.5/72.5 KB 9.9 kB/s eta 0:00:00 Collecting setuptools Downloading setuptools-80.9.0-py3-none-any.whl (1.2 MB) ━━━━━━━━━━━━━━━╸ 0.5/1.2 MB 8.7 kB/s eta 0:01:24 ERROR: Exception: Traceback (most recent call last): File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher yield File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 519, in read data = self._fp.read(amt) if not fp_closed else b"" File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 90, in read data = self.__fp.read(amt) File "/usr/lib/python3.10/http/client.py", line 466, in read s = self.fp.read(amt) File "/usr/lib/python3.10/socket.py", line 705, in readinto return self._sock.recv_into(b) File "/usr/lib/python3.10/ssl.py", line 1303, in recv_into return self.read(nbytes, buffer) File "/usr/lib/python3.10/ssl.py", line 1159, in read return self._sslobj.read(len, buffer) TimeoutError: The read operation timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 165, in exc_logging_wrapper status = run_func(*args) File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper return func(self, options, args) File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 339, in run requirement_set = resolver.resolve( File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 94, in resolve result = self._result = resolver.resolve( File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 348, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria if not criterion.candidates: File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in __bool__ return bool(self._sequence) File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__ return any(self) File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr> return (c for c in iterator if id(c) not in self._incompatible_ids) File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built candidate = func() File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 215, in _make_candidate_from_link self._link_candidate_cache[link] = LinkCandidate( File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 288, in __init__ super().__init__( File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 158, in __init__ self.dist = self._prepare() File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 227, in _prepare dist = self._prepare_distribution() File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 299, in _prepare_distribution return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 487, in prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 532, in _prepare_linked_requirement local_file = unpack_url( File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 214, in unpack_url file = get_http_url( File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 94, in get_http_url from_path, content_type = download(link, temp_dir.path) File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/network/download.py", line 146, in __call__ for chunk in chunks: File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/cli/progress_bars.py", line 304, in _rich_progress_bar for chunk in iterable: File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_internal/network/utils.py", line 63, in response_chunks for chunk in response.raw.stream( File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 576, in stream data = self.read(amt=amt, decode_content=decode_content) File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 512, in read with self._error_catcher(): File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__ self.gen.throw(typ, value, traceback) File "/tmp/build-env-6y9nh47d/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 443, in _error_catcher raise ReadTimeoutError(self._pool, None, "Read timed out.") pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/build/__main__.py", line 372, in main built = build_call( File "/usr/lib/python3/dist-packages/build/__main__.py", line 202, in build_package out = _build(isolation, builder, outdir, distribution, config_settings, skip_dependency_check) File "/usr/lib/python3/dist-packages/build/__main__.py", line 140, in _build return _build_in_isolated_env(builder, outdir, distribution, config_settings) File "/usr/lib/python3/dist-packages/build/__main__.py", line 108, in _build_in_isolated_env env.install(builder.build_system_requires) File "/usr/lib/python3/dist-packages/build/env.py", line 211, in install _subprocess(cmd) File "/usr/lib/python3/dist-packages/build/env.py", line 81, in _subprocess raise e File "/usr/lib/python3/dist-packages/build/env.py", line 78, in _subprocess subprocess.check_output(cmd, stderr=subprocess.STDOUT) File "/usr/lib/python3.10/subprocess.py", line 421, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/tmp/build-env-6y9nh47d/bin/python', '-Im', 'pip', 'install', '--use-pep517', '--no-warn-script-location', '-r', '/tmp/build-reqs-temjmr2u.txt']' returned non-zero exit status 2. ERROR Command '['/tmp/build-env-6y9nh47d/bin/python', '-Im', 'pip', 'install', '--use-pep517', '--no-warn-script-location', '-r', '/tmp/build-reqs-temjmr2u.txt']' returned non-zero exit status 2. make: *** [Util/BuildTools/Linux.mk:89:PythonAPI] 错误 1 hanxu@hanxu-OptiPlex-7090:~/桌面/carla-ue4-dev$ make PythonAPI BuildUE4Plugins.sh: Downloading STREETMAP plugin. HEAD 目前位于 260273d Correct descriptor BuildUE4Plugins.sh: StreetMap Success! Setup.sh: Generating CMake configuration files. Setup.sh: boost-1.84.0-c10 already installed. Setup.sh: rpclib-carla-callbacks-c10 already installed. Setup.sh: gtest-1.8.1-c10 already installed. Setup.sh: recast-c10 already installed. Setup.sh: Libpng already installed. Setup.sh: Xerces-c already installed. Setup.sh: Eigen already installed. Setup.sh: Sqlite already installed. Setup.sh: PROJ already installed. Setup.sh: Patchelf already installed. fatal: 不是 git 仓库(或者任何父目录):.git fatal: 不是 git 仓库(或者任何父目录):.git fatal: 不是 git 仓库(或者任何父目录):.git Setup.sh: CARLA version -dirty. Setup.sh: Success! BuildLibCarla.sh: Building LibCarla "Client.Release" configuration. ninja: no work to do. [0/1] Install the project... -- Install configuration: "Client" BuildLibCarla.sh: Success! BuildOSM2ODR.sh: Building OSM2ODR. -- Eclipse version is set to 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong. -- CMAKE_BINARY_DIR: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-build -- CMAKE_SOURCE_DIR: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-source -- -- Platform: -- Host: Linux-6.8.0-87-generic x86_64 -- Target: Linux-6.8.0-87-generic x86_64 -- CMake: 3.22.1 -- CMake generator: Ninja -- CMake build tool: /usr/bin/ninja -- Compiler: Clang 10.0.1 -- -- Found Proj: /home/hanxu/桌面/carla-ue4-dev/Build/proj-install/lib/libproj.a -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) -- Enabled features: Linux-6.8.0-87-generic x86_64 Clang 10.0.1 Release Proj -- Configuring done -- Generating done -- Build files have been written to: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-build ninja: no work to do. [0/1] Install the project... -- Install configuration: "Release" -- Up-to-date: /home/hanxu/桌面/carla-ue4-dev/PythonAPI/carla/dependencies/lib/libosm2odr.a -- Up-to-date: /home/hanxu/桌面/carla-ue4-dev/PythonAPI/carla/dependencies/include/OSM2ODR.h /home/hanxu/UnrealEngine_4.26/Engine/Source/ThirdParty/Linux/LibCxx/include/c++/v1 /home/hanxu/UnrealEngine_4.26/Engine/Source/ThirdParty/Linux/LibCxx/lib/Linux/x86_64-unknown-linux-gnu -- Eclipse version is set to 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong. -- CMAKE_BINARY_DIR: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-build-server -- CMAKE_SOURCE_DIR: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-source -- -- Platform: -- Host: Linux-6.8.0-87-generic x86_64 -- Target: Linux-6.8.0-87-generic x86_64 -- CMake: 3.22.1 -- CMake generator: Ninja -- CMake build tool: /usr/bin/ninja -- Compiler: Clang 10.0.1 -- -- Found Proj: /home/hanxu/桌面/carla-ue4-dev/Build/proj-install-server/lib/libproj.a -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) -- Enabled features: Linux-6.8.0-87-generic x86_64 Clang 10.0.1 Release Proj -- Configuring done -- Generating done -- Build files have been written to: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-build-server ninja: no work to do. [0/1] Install the project... -- Install configuration: "Release" -- Up-to-date: /home/hanxu/桌面/carla-ue4-dev/Unreal/CarlaUE4/Plugins/Carla/CarlaDependencies/lib/libosm2odr.a -- Up-to-date: /home/hanxu/桌面/carla-ue4-dev/Unreal/CarlaUE4/Plugins/Carla/CarlaDependencies/include/OSM2ODR.h -- Eclipse version is set to 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong. -- CMAKE_BINARY_DIR: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-build-server -- CMAKE_SOURCE_DIR: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-source -- -- Platform: -- Host: Linux-6.8.0-87-generic x86_64 -- Target: Linux-6.8.0-87-generic x86_64 -- CMake: 3.22.1 -- CMake generator: Ninja -- CMake build tool: /usr/bin/ninja -- Compiler: Clang 10.0.1 -- -- Found Proj: /home/hanxu/桌面/carla-ue4-dev/Build/proj-install-server/lib/libproj.a -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) -- Enabled features: Linux-6.8.0-87-generic x86_64 Clang 10.0.1 Release Proj -- Configuring done -- Generating done -- Build files have been written to: /home/hanxu/桌面/carla-ue4-dev/Build/libosm2dr-build-server ninja: no work to do. [0/1] Install the project... -- Install configuration: "Release" -- Up-to-date: /home/hanxu/桌面/carla-ue4-dev/Unreal/CarlaUE4/Plugins/Carla/CarlaDependencies/lib/libosm2odr.a -- Up-to-date: /home/hanxu/桌面/carla-ue4-dev/Unreal/CarlaUE4/Plugins/Carla/CarlaDependencies/include/OSM2ODR.h BuildOSM2ODR.sh: OSM2ODR Success! BuildPythonAPI.sh: Building Python API wheel for Python 3. * Creating venv isolated environment... * Installing packages in isolated environment... (distro, setuptools, wheel) WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, '连接被对方重置'))': /simple/wheel/ Collecting wheel Using cached wheel-0.45.1-py3-none-any.whl (72 kB) Collecting setuptools Downloading setuptools-80.9.0-py3-none-any.whl (1.2 MB) ━━━━━━╸ 0.2/1.2 MB 18.3 kB/s eta 0:00:55 ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them. setuptools from https://files.pythonhosted.org/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl#sha256=062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922 (from -r /tmp/build-reqs-yvoes9l5.txt (line 2)): Expected sha256 062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922 Got 7914852f8c529b1ae08a5182c18a1f3d3c51969f48c4acfddcd95bc2d623829c Traceback (most recent call last): File "/usr/lib/python3/dist-packages/build/__main__.py", line 372, in main built = build_call( File "/usr/lib/python3/dist-packages/build/__main__.py", line 202, in build_package out = _build(isolation, builder, outdir, distribution, config_settings, skip_dependency_check) File "/usr/lib/python3/dist-packages/build/__main__.py", line 140, in _build return _build_in_isolated_env(builder, outdir, distribution, config_settings) File "/usr/lib/python3/dist-packages/build/__main__.py", line 108, in _build_in_isolated_env env.install(builder.build_system_requires) File "/usr/lib/python3/dist-packages/build/env.py", line 211, in install _subprocess(cmd) File "/usr/lib/python3/dist-packages/build/env.py", line 81, in _subprocess raise e File "/usr/lib/python3/dist-packages/build/env.py", line 78, in _subprocess subprocess.check_output(cmd, stderr=subprocess.STDOUT) File "/usr/lib/python3.10/subprocess.py", line 421, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/tmp/build-env-7hydqfk7/bin/python', '-Im', 'pip', 'install', '--use-pep517', '--no-warn-script-location', '-r', '/tmp/build-reqs-yvoes9l5.txt']' returned non-zero exit status 1. ERROR Command '['/tmp/build-env-7hydqfk7/bin/python', '-Im', 'pip', 'install', '--use-pep517', '--no-warn-script-location', '-r', '/tmp/build-reqs-yvoes9l5.txt']' returned non-zero exit status 1. make: *** [Util/BuildTools/Linux.mk:89:PythonAPI] 错误 1
最新发布
12-05
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值