question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
zh794390558commented, Feb 26, 2019

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

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

this work for cuda10 on my host

0reactions
zh794390558commented, Feb 28, 2019

Thanks, I see.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
How to Fix Microsoft Windows 10 Installation Error Codes
Error Codes while installing Windows 10 and their corresponding solutions · Navigate to C:\$WINDOWS.~BT\Sources\Panther · Open scanresult.xml and Compatdata.xml ...
Read more >
If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >
4 Solutions to Fix Windows 10/11 Installation Has Failed
This error occurs when a user is trying to install a Windows update. This error does not come with a code or a...
Read more >
[SOLVED] Windows 10 Installation Has Failed - Driver Easy
[SOLVED] Windows 10 Installation Has Failed · Try these fixes… · Fix 1: Remove the peripheral devices · Fix 2: Clear an attribute...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found