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.

cant install cupy

See original GitHub issue

windows10, anaconda3 installed Visual Studio Community 2017 installed cuda_9.0.176_win10

`(base) C:\Users\cmjoh>pip install cupy --pre Collecting cupy Using cached cupy-4.0.0b4.tar.gz Complete output from command python setup.py egg_info: ************************************************** *** WARNING: Cannot find nvToolsExt. nvtx was disabled. ************************************************** Options: {‘package_name’: ‘cupy’, ‘long_description’: None, ‘wheel_libs’: [], ‘profile’: False, ‘linetrace’: False, ‘annotate’: False, ‘no_cuda’: False}

-------- Configuring Module: cuda --------
Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

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

Build Environment:
  Include directories: ['C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.0\\include', 'C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\include']
  Library directories: ['C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.0\\bin', 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.0\\lib\\x64', 'C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\lib\\x64']
  nvcc command       : ['C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.0\\bin/nvcc.exe']

Environment Variables:
  CFLAGS          : (none)
  LDFLAGS         : (none)
  LIBRARY_PATH    : (none)
  CUDA_PATH       : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0
  NVCC            : (none)

Modules:
  cuda      : No
    -> Include files not found: ['cublas_v2.h', 'cuda.h', 'cuda_profiler_api.h', 'cuda_runtime.h', 'cufft.h', 'curand.h', 'cusparse.h', 'nvrtc.h']
    -> Check your CFLAGS 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 "<string>", line 1, in <module>
  File "C:\Users\cmjoh\AppData\Local\Temp\pip-build-g5xaodze\cupy\setup.py", line 64, in <module>
    ext_modules = cupy_setup_build.get_ext_modules()
  File "C:\Users\cmjoh\AppData\Local\Temp\pip-build-g5xaodze\cupy\cupy_setup_build.py", line 547, in get_ext_modules
    extensions = make_extensions(arg_options, compiler, use_cython)
  File "C:\Users\cmjoh\AppData\Local\Temp\pip-build-g5xaodze\cupy\cupy_setup_build.py", line 374, in make_extensions
    raise Exception('Your CUDA environment is invalid. '
Exception: Your CUDA environment is invalid. Please check above error log.

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in C:\Users\cmjoh\AppData\Local\Temp\pip-build-g5xaodze\cupy
`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
beckybaicommented, Mar 5, 2018

same problem with cuda-9.0. using this solved the problem: $pip install cupy-cuda90

0reactions
kmaehashicommented, Jul 18, 2018

We started to provide windows wheels for development releases. Please refer to the installation guide. https://docs-cupy.chainer.org/en/latest/install.html#install-cupy

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install via Pip · Issue #952 · cupy/cupy - GitHub
Tried to install via pip install cupy but got the following error: Collecting cupy Using cached cupy-2.3.0.tar.gz Complete output from ...
Read more >
I cannot install cupy with pip - Stack Overflow
running install running build running build_py creating build creating build/lib. linux-x86_64-3.6 creating build/lib. linux-x86_64-3.6/cupy ...
Read more >
Installation — CuPy 11.4.0 documentation
pip fails to install CuPy# ... If you are using certain versions of conda, it may fail to build CuPy with error g++:...
Read more >
[Example code]-I cannot install cupy with pip
WARNING: Some modules could not be configured. CuPy will be installed without these modules. Please refer to the Installation Guide for details: ...
Read more >
Having problems installing cupy : r/learnpython - Reddit
I'm trying to set up CuPy so that I can run some calculations more efficiently ... I get an error message saying the...
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