espnet: Install error

What can do with this error?

You should consider upgrading via the 'pip install --upgrade pip' command.
612 . venv/bin/activate && pip install cupy==5.0.0
Collecting cupy==5.0.0
614   Downloading http://mirrors.aliyun.com/pypi/packages/cc/60/74bce24d1570cd974567599862ebf15d8719504b09766a6cc1a0d10435a5/cupy-5.0.0.tar.gz (2.4MB)
615     Complete output from command python setup.py egg_info:
616     Options: {'package_name': 'cupy', 'long_description': None, 'wheel_libs': [], 'no_rpath': False, 'profile': False, 'linetrace': False, 'annotate': False, 'no_cuda': False}
617     **************************************************
618     *** WARNING: nvcc path != CUDA_PATH
619     *** WARNING: nvcc path: /usr/local/cuda
620     *** WARNING: CUDA_PATH: /nfs/project/tools/anaconda3/pkgs/cudnn-7.2.1-cuda9.2_0/
621     **************************************************
622 
623     -------- Configuring Module: cuda --------
624     cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
625     /tmp/tmpje1vjwke/a.cpp:1:23: fatal error: cublas_v2.h: No such file or directory
626      #include <cublas_v2.h>
627                            ^
628     compilation terminated.
629     command 'gcc' failed with exit status 1
630 
631     ************************************************************
632     * CuPy Configuration Summary                               *
633     ************************************************************
634 
635     Build Environment:
636       Include directories: ['/nfs/project/tools/anaconda3/pkgs/cudnn-7.2.1-cuda9.2_0/include']
637       Library directories: ['/nfs/project/tools/anaconda3/pkgs/cudnn-7.2.1-cuda9.2_0/lib']
638       nvcc command       : (not found)
639 
640     Environment Variables:
641       CFLAGS          : (none)
642       LDFLAGS         : (none)
643       LIBRARY_PATH    : (none)
644       CUDA_PATH       : /nfs/project/tools/anaconda3/pkgs/cudnn-7.2.1-cuda9.2_0/
645       NVTOOLSEXT_PATH : (none)
646       NVCC            : (none)
647 
648     Modules:
649       cuda      : No
650         -> Include files not found: ['cublas_v2.h', 'cuda.h', 'cuda_profiler_api.h', 'cuda_runtime.h', 'cufft.h', 'curand.h', 'cusparse.h', 'nvrtc.h']
651         -> Check your CFLAGS environment variable.
652 
653     ERROR: CUDA could not be found on your system.
654     Please refer to the Installation Guide for details:
655     https://docs-cupy.chainer.org/en/stable/install.html
656 
657     ************************************************************
658 
659     Traceback (most recent call last):
660       File "<string>", line 1, in <module>
661       File "/tmp/pip-build-3d1ehm5b/cupy/setup.py", line 118, in <module>
662         ext_modules = cupy_setup_build.get_ext_modules()
663       File "/tmp/pip-build-3d1ehm5b/cupy/cupy_setup_build.py", line 588, in get_ext_modules
664         extensions = make_extensions(arg_options, compiler, use_cython)
665       File "/tmp/pip-build-3d1ehm5b/cupy/cupy_setup_build.py", line 384, in make_extensions
666         raise Exception('Your CUDA environment is invalid. '
667     Exception: Your CUDA environment is invalid. Please check above error log.
668 
669     ----------------------------------------
670 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-3d1ehm5b/cupy/
671 You are using pip version 9.0.1, however version 19.0.3 is available.
672 You should consider upgrading via the 'pip install --upgrade pip' command.
673 make: *** [espnet.done] Error 1

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

https://github.com/cupy/cupy/issues/952

CUDA_PATH=/usr/local/cuda pip install --pre cupy-cuda100

this work for cuda10 on my host