thomgrand / torch_kdtree Goto Github PK
View Code? Open in Web Editor NEWPort of cp_kdtree to pytorch
License: MIT License
Port of cp_kdtree to pytorch
License: MIT License
Hi,
I am using the Windows system and after downloading the file, I use anaconda to enter the file directory and execute pip install Command, but an error occurred. I am not sure how to solve this problem
(py3.10) D:\cc\torch_kdtree-main_torch>pip install .
WARNING: Ignoring invalid distribution -harset-normalizer (e:\anaconda3\envs\py3.10\lib\site-packages)
Processing d:\cc\torch_kdtree-main_torch
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.20 in e:\anaconda3\envs\py3.10\lib\site-packages (from torch-kdtree==1.0) (1.23.5)
Requirement already satisfied: torch in e:\anaconda3\envs\py3.10\lib\site-packages (from torch-kdtree==1.0) (1.13.1+cu116)
Requirement already satisfied: typing-extensions in e:\anaconda3\envs\py3.10\lib\site-packages (from torch->torch-kdtree==1.0) (4.5.0)
Building wheels for collected packages: torch-kdtree
Building wheel for torch-kdtree (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for torch-kdtree (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [71 lines of output]
running bdist_wheel
running build
running build_py
running build_ext
CMake Error at E:/Temp/pip-build-env-j9fya7em/overlay/Lib/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeDetermineCompilerId.cmake:503 (message):
No CUDA toolset found.
Call Stack (most recent call first):
E:/Temp/pip-build-env-j9fya7em/overlay/Lib/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
E:/Temp/pip-build-env-j9fya7em/overlay/Lib/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test)
E:/Temp/pip-build-env-j9fya7em/overlay/Lib/site-packages/cmake/data/share/cmake-3.27/Modules/CMakeDetermineCUDACompiler.cmake:307 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:4 (project)
-- Configuring incomplete, errors occurred!
Building extension...
Building extension #2...
Build temp dir: build\temp.win-amd64-cpython-310\Release D:\cc\torch_kdtree-main_torch\build\lib.win-amd64-cpython-310\
Traceback (most recent call last):
File "E:\anaconda3\envs\py3.10\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "E:\anaconda3\envs\py3.10\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "E:\anaconda3\envs\py3.10\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\build_meta.py", line 434, in build_wheel
return self._build_with_temp_dir(
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\build_meta.py", line 419, in _build_with_temp_dir
self.run_setup()
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 143, in <module>
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\dist.py", line 989, in run_command
super().run_command(command)
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 364, in run
self.run_command("build")
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\dist.py", line 989, in run_command
super().run_command(command)
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\dist.py", line 989, in run_command
super().run_command(command)
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 88, in run
_build_ext.run(self)
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 345, in run
self.build_extensions()
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "E:\Temp\pip-build-env-j9fya7em\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "<string>", line 129, in build_extension
File "E:\anaconda3\envs\py3.10\lib\subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'D:\\cc\\torch_kdtree-main_torch', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\\cc\\torch_kdtree-main_torch\\build\\lib.win-amd64-cpython-310', '-DPYTHON_EXECUTABLE=E:\\anaconda3\\envs\\py3.10\\python.exe', '-DEXAMPLE_VERSION_INFO=1.0', '-DCMAKE_BUILD_TYPE=Release', '-DPIP_BUILD=ON', '-A', 'x64']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for torch-kdtree
Failed to build torch-kdtree
ERROR: Could not build wheels for torch-kdtree, which is required to install pyproject.toml-based projects
Thanks for your great work!
We found that the memory used by the kd-tree object cannot be reclaimed normally by python gc, is there a solution? Thank you very much!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.