-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install‘s q:about detectron2 #32
Comments
detail: Stored in directory: c:\users\paxini_035\appdata\local\pip\cache\wheels\37\de\9b\c200bd90fd494188a835942684c2d5434a72aa7825ff2fb906 × python setup.py bdist_wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. |
Perhaps you can try comment line 86 of third_party/Mask2Former/setup.py and install detectron2 manually. This works for me. |
run:pip install -e .
return:ERROR: Could not build wheels for detectron2, which is required to install pyproject.toml-based projects
detail:
39\detectron2\model_zoo\configs\new_baselines
copying detectron2\model_zoo\configs\new_baselines\mask_rcnn_R_50_FPN_50ep_LSJ.py -> build\lib.win-amd64-cpython-39\detectron2\model_zoo\configs\new_baselines
running build_ext
D:\anaconda\envs\nerf\lib\site-packages\torch\utils\cpp_extension.py:358: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
building 'detectron2._C' extension
creating C:\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092\build\temp.win-amd64-cpython-39
creating C:\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092\build\temp.win-amd64-cpython-39\Release
creating C:\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092\build\temp.win-amd64-cpython-39\Release\Users
creating C:\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092\build\temp.win-amd64-cpython-39\Release\Users\PaXini_035
creating C:\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092\build\temp.win-amd64-cpython-39\Release\Users\PaXini_035\AppData
creating C:\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092\build\temp.win-amd64-cpython-39\Release\Users\PaXini_035\AppData\Local
creating C:\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092\build\temp.win-amd64-cpython-39\Release\Users\PaXini_035\AppData\Local\Temp
creating C:\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092\build\temp.win-amd64-cpython-39\Release\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z
creating C:\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092\build\temp.win-amd64-cpython-39\Release\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092
creating C:\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092\build\temp.win-amd64-cpython-39\Release\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092\detectron2
error: could not create 'C:\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092\build\temp.win-amd64-cpython-39\Release\Users\PaXini_035\AppData\Local\Temp\pip-install-a7zcsi7z\detectron2_c46d9e951c9e4544ac7db943756ba092\detectron2': 文件名或扩展名太长。
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for detectron2
Running setup.py clean for detectron2
Building wheel for lvis (setup.py) ... done
Created wheel for lvis: filename=lvis-0.5.3-py3-none-any.whl size=14020 sha256=d9272abdad25f5a6bfe26b3f5bf00c215e352eb030e512cdfc85a1dc3100997e
Stored in directory: C:\Users\PaXini_035\AppData\Local\Temp\pip-ephem-wheel-cache-polfx76g\wheels\56\46\42\dc63fcf42b15c084a2d44b6d6854d3dd27d0f3886363ce582b
Building wheel for panopticapi (setup.py) ... done
Created wheel for panopticapi: filename=panopticapi-0.1-py3-none-any.whl size=9302 sha256=17b9b66051da4a373f6fceff0b62c995b4a3173b8ba6d5a8560729a47abed543
Stored in directory: C:\Users\PaXini_035\AppData\Local\Temp\pip-ephem-wheel-cache-polfx76g\wheels\52\9a\3e\b664fb2d7b0016a15b505840f9d97ece85bbc203b74debcde0
Building wheel for pathtools (setup.py) ... done
Created wheel for pathtools: filename=pathtools-0.1.2-py3-none-any.whl size=8801 sha256=bd9d445360da0cdea47b35a8206cac311954640517ba449e1678f28c5e10878b
Stored in directory: c:\users\paxini_035\appdata\local\pip\cache\wheels\ac\67\0c\7406f4ff2becf8690a173e4ad09fad416c31dd5ddcb23b7f9d
Building wheel for future (setup.py) ... done
Created wheel for future: filename=future-0.18.3-py3-none-any.whl size=492055 sha256=d9023b0844c47de4abc7637c72575b36e901f949ed769d05226bd5478252fbdc
Stored in directory: c:\users\paxini_035\appdata\local\pip\cache\wheels\56\e1\4e\6ceef740e8a6cd23736ece789be212141ec1a451067edcb87f
Successfully built diffdist antlr4-python3-runtime mask2former test-tube lvis panopticapi pathtools future
Failed to build detectron2
ERROR: Could not build wheels for detectron2, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered: