请问一下大佬为啥执行完 python setup.py install后,会报错呢
Traceback (most recent call last):
File "setup.py", line 9, in
'sort_vert_kernel.cu',
File "/home/zhang/anaconda3/envs/RI/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 705, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "/home/zhang/anaconda3/envs/RI/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 795, in library_paths
if (not os.path.exists(_join_cuda_home(lib_dir)) and
File "/home/zhang/anaconda3/envs/RI/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1652, in _join_cuda_home
raise EnvironmentError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
请问一下大佬为啥执行完 python setup.py install后,会报错呢 Traceback (most recent call last): File "setup.py", line 9, in
'sort_vert_kernel.cu',
File "/home/zhang/anaconda3/envs/RI/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 705, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "/home/zhang/anaconda3/envs/RI/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 795, in library_paths
if (not os.path.exists(_join_cuda_home(lib_dir)) and
File "/home/zhang/anaconda3/envs/RI/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1652, in _join_cuda_home
raise EnvironmentError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.