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

北城以北 提交于 2020-07-09 04:15:15

问题


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 "<string>", line 1, in <module>
      File "/private/var/folders/cw/7_q449q1001fzq0ttwsy_qd80000gn/T/pip-install-puv5x7oh/spatial-correlation-sampler/setup.py", line 57, in <module>
        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.

回答1:


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

nvcc --version

in command line?



来源:https://stackoverflow.com/questions/58732467/command-errored-out-with-exit-status-1-python-setup-py-egg-info-check-the-logs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!