python setup.py egg_info check_命令错误,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出...

I tried to run pip install spatial-correlation-sampler in mac terminal but got the error -

Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Full error:

ERROR: Command errored out with exit status 1:

command: /anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cw/7_q449q1001fzq0ttwsy_qd80000gn/T/pip-install-puv5x7oh/spatial-correlation-sampler/setup.py'"'"'; __file__='"'"'/private/var/folders/cw/7_q449q1001fzq0ttwsy_qd80000gn/T/pip-install-puv5x7oh/spatial-correlation-sampler/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info

cwd: /private/var/folders/cw/7_q449q1001fzq0ttwsy_qd80000gn/T/pip-install-puv5x7oh/spatial-correlation-sampler/

Complete output (13 lines):

Traceback (most recent call last):

File "", line 1, in

File "/private/var/folders/cw/7_q449q1001fzq0ttwsy_qd80000gn/T/pip-install-puv5x7oh/spatial-correlation-sampler/setup.py", line 57, in

launch_setup()

File "/private/var/folders/cw/7_q449q1001fzq0ttwsy_qd80000gn/T/pip-install-puv5x7oh/spatial-correlation-sampler/setup.py", line 40, in launch_setup

extra_link_args=['-lgomp'])

File "/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 476, in CUDAExtension

library_dirs += library_paths(cuda=True)

File "/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 555, in library_paths

if (not os.path.exists(_join_cuda_home(lib_dir)) and

File "/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1146, 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.

----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

解决方案

I cannot comment due to reputation, but do you have CUDA installed? What happens when you run

nvcc --version

in command line?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值