配置nerfstdio出现的错误

error: subprocess-exited-with-error × Building wheel for pycocotools (pyproject.toml) did not run successfully.
│ exit code: 1

        ╰─> [16 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-38 creating build\lib.win-amd64-cpython-38\pycocotools copying pycocotools\coco.py -> build\lib.win-amd64-cpython-38\pycocotools copying pycocotools\cocoeval.py -> build\lib.win-amd64-cpython-38\pycocotools copying pycocotools\mask.py -> build\lib.win-amd64-cpython-38\pycocotools copying pycocotools\__init__.py -> build\lib.win-amd64-cpython-38\pycocotools running build_ext cythoning pycocotools/_mask.pyx to pycocotools\_mask.c building 'pycocotools._mask' extension C:\Users\Administrator\AppData\Local\Temp\pip-build-env-fxp1dtkh\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\Administrator\AppData\Local\Temp\pip-install-preigbua\pycocotools_dc87f4dd5e6543fa9b4d79a720fe139e\pycocotools\_mask.pyx tree = Parsing.p_module(s, pxd, full_module_name) error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycocotools Failed to build pycocotools ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects

这个错误在于你正在尝试安装 pycocotools 包,但由于缺少 Microsoft Visual C++ 14.0 或更高版本,安装失败。您需要先安装Microsoft C++ Build Tools,点击进入下载页面后

配置nerfstdio出现的错误_第1张图片

 下载完成后,出现这个文件

配置nerfstdio出现的错误_第2张图片

 点击这个文件进入这个页面

配置nerfstdio出现的错误_第3张图片

 勾选这个使用C++的桌面开发,然后在右下角点击下载

然后就进入下载安装页面了,可能会等待一段时间,长的话会超过半小时,下面是我安装完成的页面

配置nerfstdio出现的错误_第4张图片

 重启后,重新执行这个命令

pip install nerfstudio

等待一段时间后,就会出现安装成功的页面

你可能感兴趣的:(学习笔记,计算机视觉,人工智能,深度学习,pytorch)