Pip install spatial_correlation_sampler

HuiwenL: <p>error: subprocess-exited-with-error</p>
<p>× python setup.py bdist_wheel did not run successfully.<br>
│ exit code: 1<br>
╰─&gt; [60 lines of output]<br>
No CUDA runtime is found, using CUDA_HOME=‘/usr/local/cuda’<br>
running bdist_wheel<br>
running build<br>
running build_py<br>
creating build<br>
creating build/lib.linux-x86_64-cpython-38<br>
creating build/lib.linux-x86_64-cpython-38/spatial_correlation_sampler<br>
copying Correlation_Module/spatial_correlation_sampler/spatial_correlation_sampler.py → build/lib.linux-x86_64-cpython-38/spatial_correlation_sampler<br>
copying Correlation_Module/spatial_correlation_sampler/<strong>init</strong>.py → build/lib.linux-x86_64-cpython-38/spatial_correlation_sampler<br>
running build_ext<br>
Traceback (most recent call last):<br>
File “”, line 2, in <br>
File “”, line 34, in <br>
File “/tmp/pip-install-wja02f1l/spatial-correlation-sampler_76cbda975a75419c9cfb3bb63fdec5a9/setup.py”, line 57, in <br>
launch_setup()<br>
File “/tmp/pip-install-wja02f1l/spatial-correlation-sampler_76cbda975a75419c9cfb3bb63fdec5a9/setup.py”, line 25, in launch_setup<br>
setup(<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/<strong>init</strong>.py”, line 107, in setup<br>
return distutils.core.setup(**attrs)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/_distutils/core.py”, line 185, in setup<br>
return run_commands(dist)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/_distutils/core.py”, line 201, in run_commands<br>
dist.run_commands()<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 969, in run_commands<br>
self.run_command(cmd)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/dist.py”, line 1234, in run_command<br>
super().run_command(command)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 988, in run_command<br>
cmd_obj.run()<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/wheel/bdist_wheel.py”, line 325, in run<br>
self.run_command(“build”)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/_distutils/cmd.py”, line 318, in run_command<br>
self.distribution.run_command(command)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/dist.py”, line 1234, in run_command<br>
super().run_command(command)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 988, in run_command<br>
cmd_obj.run()<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/_distutils/command/build.py”, line 131, in run<br>
self.run_command(cmd_name)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/_distutils/cmd.py”, line 318, in run_command<br>
self.distribution.run_command(command)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/dist.py”, line 1234, in run_command<br>
super().run_command(command)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/_distutils/dist.py”, line 988, in run_command<br>
cmd_obj.run()<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/command/build_ext.py”, line 84, in run<br>
_build_ext.run(self)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py”, line 186, in run<br>
_build_ext.build_ext.run(self)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py”, line 345, in run<br>
self.build_extensions()<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/torch/utils/cpp_extension.py”, line 499, in build_extensions<br>
_check_cuda_version(compiler_name, compiler_version)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/torch/utils/cpp_extension.py”, line 383, in _check_cuda_version<br>
torch_cuda_version = packaging.version.parse(torch.version.cuda)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/version.py”, line 52, in parse<br>
return Version(version)<br>
File “/home/unbuntu/anaconda3/envs/fubao/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/version.py”, line 196, in <strong>init</strong><br>
match = self._regex.search(version)<br>
TypeError: expected string or bytes-like object<br>
[end of output]</p>
<p>note: This error originates from a subprocess, and is likely not a problem with pip.<br>
ERROR: Failed building wheel for spatial_correlation_sampler<br>
Running setup.py clean for spatial_correlation_sampler<br>
Failed to build spatial_correlation_sampler<br>
ERROR: Could not build wheels for spatial_correlation_sampler, which is required to install pyproject.toml-based projects</p>