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.

Logo

欢迎来到FlagOS开发社区,这里是一个汇聚了AI开发者、数据科学家、机器学习爱好者以及业界专家的活力平台。我们致力于成为业内领先的Triton技术交流与应用分享的殿堂,为推动人工智能技术的普及与深化应用贡献力量。

更多推荐