python安装torch-scatter报错:Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。

211 篇文章 ¥49.90 ¥99.00

在python中安装torch-scatter模块的时候报错。

C:\Users\Administrator>pip install torch-scatter Looking in indexes:
https://pypi.tuna.tsinghua.edu.cn/simple Collecting torch-scatter
Using cached
https://pypi.tuna.tsinghua.edu.cn/packages/f5/ab/2a44ecac0f891dd0d765fc59ac8d277c6283a31907626560e72685df2ed6/torch_scatter-2.1.2.tar.gz
(108 kB) Preparing metadata (setup.py) … done Building wheels for
collected packages: torch-scatter Building wheel for torch-scatter
(setup.py) … error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit
code: 1 ╰─> [25 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creati

conda安装环境出现问题:Building wheels for collected packages: torch-scatter, torch-cluster Building wheel for torch-scatter (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [31 lines of output] running bdist_wheel running build running build_py creating build\lib.win-amd64-cpython-38\torch_scatter copying torch_scatter\placeholder.py -> build\lib.win-amd64-cpython-38\torch_scatter copying torch_scatter\scatter.py -> build\lib.win-amd64-cpython-38\torch_scatter copying torch_scatter\segment_coo.py -> build\lib.win-amd64-cpython-38\torch_scatter copying torch_scatter\segment_csr.py -> build\lib.win-amd64-cpython-38\torch_scatter copying torch_scatter\testing.py -> build\lib.win-amd64-cpython-38\torch_scatter copying torch_scatter\utils.py -> build\lib.win-amd64-cpython-38\torch_scatter copying torch_scatter\__init__.py -> build\lib.win-amd64-cpython-38\torch_scatter creating build\lib.win-amd64-cpython-38\torch_scatter\composite copying torch_scatter\composite\logsumexp.py -> build\lib.win-amd64-cpython-38\torch_scatter\composite copying torch_scatter\composite\softmax.py -> build\lib.win-amd64-cpython-38\torch_scatter\composite copying torch_scatter\composite\std.py -> build\lib.win-amd64-cpython-38\torch_scatter\composite copying torch_scatter\composite\__init__.py -> build\lib.win-amd64-cpython-38\torch_scatter\composite running egg_info writing torch_scatter.egg-info\PKG-INFO writing dependency_links to torch_scatter.egg-info\dependency_links.txt writing requirements to torch_scatter.egg-info\requires.txt writing top-level names to torch_scatter.egg-info\top_level.txt reading manifest file 'torch_scatter.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*' found under directory 'test' adding license file 'LICENSE' writing manifest file 'torch_scatter.egg-info\SOURCES.txt' running build_ext D:\anaconda3\envs\NBFNet\lib\site-packages\torch\utils\cpp_extension.py:304: UserWarning: Error checking compiler version for cl: [WinError 2] 系统不到指定文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'torch_scatter._scatter_cpu' extension 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 torch-scatter Running setup.py clean for torch-scatter Building wheel for torch-cluster (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [30 lines of output] running bdist_wheel running build running build_py creating build\lib.win-amd64-cpython-38\torch_cluster copying torch_cluster\fps.py -> build\lib.win-amd64-cpython-38\torch_cluster copying torch_cluster\graclus.py -> build\lib.win-amd64-cpython-38\torch_cluster copying torch_cluster\grid.py -> build\lib.win-amd64-cpython-38\torch_cluster copying torch_cluster\knn.py -> build\lib.win-amd64-cpython-38\torch_cluster copying torch_cluster\nearest.py -> build\lib.win-amd64-cpython-38\torch_cluster copying torch_cluster\radius.py -> build\lib.win-amd64-cpython-38\torch_cluster copying torch_cluster\rw.py -> build\lib.win-amd64-cpython-38\torch_cluster copying torch_cluster\sampler.py -> build\lib.win-amd64-cpython-38\torch_cluster copying torch_cluster\testing.py -> build\lib.win-amd64-cpython-38\torch_cluster copying torch_cluster\typing.py -> build\lib.win-amd64-cpython-38\torch_cluster copying torch_cluster\__init__.py -> build\lib.win-amd64-cpython-38\torch_cluster running egg_info writing torch_cluster.egg-info\PKG-INFO writing dependency_links to torch_cluster.egg-info\dependency_links.txt writing requirements to torch_cluster.egg-info\requires.txt writing top-level names to torch_cluster.egg-info\top_level.txt reading manifest file 'torch_cluster.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*' found under directory 'test' adding license file 'LICENSE' writing manifest file 'torch_cluster.egg-info\SOURCES.txt' running build_ext D:\anaconda3\envs\NBFNet\lib\site-packages\torch\utils\cpp_extension.py:304: UserWarning: Error checking compiler version for cl: [WinError 2] 系统不到指定文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'torch_cluster._fps_cpu' extension 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 torch-cluster Running setup.py clean for torch-cluster Failed to build torch-scatter torch-cluster ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (torch-scatter, torch-cluster)
06-23
(Log) PS D:\Project\Y\project\GraphLogAD-main> pip install --no-cache-dir torch-scatter Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting torch-scatter Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f5/ab/2a44ecac0f891dd0d765fc59ac8d277c6283a31907626560e72685df2ed6/torch_scatter-2.1.2.tar.gz (108 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: torch-scatter DEPRECATION: Building 'torch-scatter' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of 'torch-scatter'. Discussion can be found at https://github.com/pypa/pip/issues/6334 Building wheel for torch-scatter (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [44 lines of output] C:\Users\23833\.conda\envs\Log\lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: MIT License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running bdist_wheel running build running build_py creating build\lib.win-amd64-cpython-310\torch_scatter copying torch_scatter\placeholder.py -> build\lib.win-amd64-cpython-310\torch_scatter copying torch_scatter\scatter.py -> build\lib.win-amd64-cpython-310\torch_scatter copying torch_scatter\segment_coo.py -> build\lib.win-amd64-cpython-310\torch_scatter copying torch_scatter\segment_csr.py -> build\lib.win-amd64-cpython-310\torch_scatter copying torch_scatter\testing.py -> build\lib.win-amd64-cpython-310\torch_scatter copying torch_scatter\utils.py -> build\lib.win-amd64-cpython-310\torch_scatter copying torch_scatter\__init__.py -> build\lib.win-amd64-cpython-310\torch_scatter creating build\lib.win-amd64-cpython-310\torch_scatter\composite copying torch_scatter\composite\logsumexp.py -> build\lib.win-amd64-cpython-310\torch_scatter\composite copying torch_scatter\composite\softmax.py -> build\lib.win-amd64-cpython-310\torch_scatter\composite copying torch_scatter\composite\std.py -> build\lib.win-amd64-cpython-310\torch_scatter\composite copying torch_scatter\composite\__init__.py -> build\lib.win-amd64-cpython-310\torch_scatter\composite running egg_info writing torch_scatter.egg-info\PKG-INFO writing dependency_links to torch_scatter.egg-info\dependency_links.txt writing requirements to torch_scatter.egg-info\requires.txt writing top-level names to torch_scatter.egg-info\top_level.txt reading manifest file 'torch_scatter.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*' found under directory 'test' adding license file 'LICENSE' writing manifest file 'torch_scatter.egg-info\SOURCES.txt' running build_ext C:\Users\23833\.conda\envs\Log\lib\site-packages\torch\utils\cpp_extension.py:382: UserWarning: Error checking compiler version for cl: [WinError 2] 系统不到指定文件。 warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'torch_scatter._scatter_cpu' extension 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 torch-scatter Running setup.py clean for torch-scatter Failed to build torch-scatter ERROR: Failed to build installable wheels for some pyproject.toml based projects (torch-scatter)
最新发布
06-23
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Roc-xb

真诚赞赏,手留余香

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值