首页 Paddle框架 帖子详情
安装cupy发现cuda配置不对
收藏
快速回复
Paddle框架 问答深度学习 5442 2
安装cupy发现cuda配置不对
收藏
快速回复
Paddle框架 问答深度学习 5442 2

ERROR: Command errored out with exit status 1:
command: /opt/conda/envs/python35-paddle120-env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-o3cvz24p/cupy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-o3cvz24p/cupy/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: /tmp/pip-install-o3cvz24p/cupy/
Complete output (48 lines):
Options: {'package_name': 'cupy', 'long_description': None, 'wheel_libs': [], 'wheel_includes': [], 'no_rpath': False, 'profile': False, 'linetrace': False, 'annotate': False, 'no_cuda': False, 'use_hip': False}

-------- Configuring Module: cuda --------
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
/opt/conda/envs/python35-paddle120-env/compiler_compat/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcuda.so: file not recognized: file truncated
collect2: error: ld returned 1 exit status
Cannot build a stub file.
Original error: command 'g++' failed with exit status 1

************************************************************
* CuPy Configuration Summary *
************************************************************

Build Environment:
Include directories: ['/usr/local/cuda/include']
Library directories: ['/usr/local/cuda/lib64']
nvcc command : ['/usr/local/cuda/bin/nvcc']

Environment Variables:
CFLAGS : (none)
LDFLAGS : (none)
LIBRARY_PATH : /usr/local/cuda/lib64/stubs
CUDA_PATH : (none)
NVTOOLSEXT_PATH : (none)
NVCC : (none)
ROCM_HOME : (none)

Modules:
cuda : No
-> Cannot link libraries: ['cublas', 'cuda', 'cudart', 'cufft', 'curand', 'cusparse', 'nvrtc']
-> Check your LDFLAGS environment variable.

ERROR: CUDA could not be found on your system.
Please refer to the Installation Guide for details:
https://docs-cupy.chainer.org/en/stable/install.html

************************************************************

Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-o3cvz24p/cupy/setup.py", line 129, in
ext_modules = cupy_setup_build.get_ext_modules()
File "/tmp/pip-install-o3cvz24p/cupy/cupy_setup_build.py", line 744, in get_ext_modules
extensions = make_extensions(arg_options, compiler, use_cython)
File "/tmp/pip-install-o3cvz24p/cupy/cupy_setup_build.py", line 492, in make_extensions
raise Exception('Your CUDA environment is invalid. '
Exception: Your CUDA environment is invalid. Please check above error log.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


[6]


1
2

 


!pip install  cupy -t /home/aistudio/external-libraries
 

 

 

 

 

 

 

运行时长: 11秒195毫秒
结束时间: 2020-04-27 15:14:52

Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple/
Collecting cupy
Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/c4/e5/ab8cf3b114df33c904e15c700913803808ce64d87605c4baf5b8fc08050c/cupy-7.4.0.tar.gz
ERROR: Command errored out with exit status 1:
command: /opt/conda/envs/python35-paddle120-env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-s_ob0yoy/cupy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-s_ob0yoy/cupy/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: /tmp/pip-install-s_ob0yoy/cupy/
Complete output (48 lines):
Options: {'package_name': 'cupy', 'long_description': None, 'wheel_libs': [], 'wheel_includes': [], 'no_rpath': False, 'profile': False, 'linetrace': False, 'annotate': False, 'no_cuda': False, 'use_hip': False}

-------- Configuring Module: cuda --------
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
/opt/conda/envs/python35-paddle120-env/compiler_compat/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcuda.so: file not recognized: file truncated
collect2: error: ld returned 1 exit status
Cannot build a stub file.
Original error: command 'g++' failed with exit status 1

************************************************************
* CuPy Configuration Summary *
************************************************************

Build Environment:
Include directories: ['/usr/local/cuda/include']
Library directories: ['/usr/local/cuda/lib64']
nvcc command : ['/usr/local/cuda/bin/nvcc']

Environment Variables:
CFLAGS : (none)
LDFLAGS : (none)
LIBRARY_PATH : /usr/local/cuda/lib64/stubs
CUDA_PATH : (none)
NVTOOLSEXT_PATH : (none)
NVCC : (none)
ROCM_HOME : (none)

Modules:
cuda : No
-> Cannot link libraries: ['cublas', 'cuda', 'cudart', 'cufft', 'curand', 'cusparse', 'nvrtc']
-> Check your LDFLAGS environment variable.

ERROR: CUDA could not be found on your system.
Please refer to the Installation Guide for details:
https://docs-cupy.chainer.org/en/stable/install.html

************************************************************

Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-s_ob0yoy/cupy/setup.py", line 129, in
ext_modules = cupy_setup_build.get_ext_modules()
File "/tmp/pip-install-s_ob0yoy/cupy/cupy_setup_build.py", line 744, in get_ext_modules
extensions = make_extensions(arg_options, compiler, use_cython)
File "/tmp/pip-install-s_ob0yoy/cupy/cupy_setup_build.py", line 492, in make_extensions
raise Exception('Your CUDA environment is invalid. '
Exception: Your CUDA environment is invalid. Please check above error log.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

0
收藏
回复
全部评论(2)
时间顺序
AIStudio810261
#2 回复于2020-04

你确定是在GPU环境下进行这个安装的吗?

0
回复
水水水的老师
#3 回复于2020-04

ERROR: CUDA could not be found on your system.

1
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户