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.

Error installing CuPy in Windows even with wheels (pip install cupy-cuda91)

See original GitHub issue

I have been trying to install CuPy in my Windows 10 64bits machine, to use with Python 2.7 and Cuda 9.1.85:

>nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2017 NVIDIA Corporation Built on Fri_Nov__3_21:08:12_Central_Daylight_Time_2017 Cuda compilation tools, release 9.1, V9.1.85

My GPU also meets the requirements, since it is a GeForce GTX 960M thus with 5.0 compute capability.

When I try pip install cupy I get a few errors in the installation log (which you can find attached). Then when I try pip install cupy-cuda91 I get:

>pip install cupy-cuda91 Collecting cupy-cuda91 Could not find a version that satisfies the requirement cupy-cuda91 (from versions: ) No matching distribution found for cupy-cuda91

I wonder if I am missing any basic step here, or whether you can help me sort out what might be interfering with the installation since I seem to have all requirements met to easily install via wheels.

cuda_install_log.txt

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
disktnkcommented, Aug 20, 2018

On Windows OS, cupy wheel only supports Python3.6. ref: https://pypi.org/project/cupy-cuda91/5.0.0b3/#files

Python2.7 (compiling) requires Visual Studio9.0 (VS2008) but CUDA support from Visual Studio 2012~, so local build may also be difficult, I think.

0reactions
vasselaicommented, Aug 26, 2018

@kmaehashi I solved the issue and, to help others that might be in the same situation in the future, here’s the solution: for some reason, pip and pip3 were being unable to call Visual Studio C++ command line compiler. Reinstalling Microsoft Visual C++ Build Tools 2017 did the trick.

While all my code is done with Python 2.7, now I have CuPY properly running with Python 3.6 in a separate Anaconda environment for some testing.

Consider my case closed 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation — CuPy 11.4.0 documentation
Installing CuPy from PyPI#. Wheels (precompiled binary packages) are available for Linux and Windows. Package names are different depending on your CUDA Toolkit ......
Read more >
Trouble while installing cupy on Windows 10 with pip
pip install cupy ERROR : Command errored out with exit status 1: command: 'c:\users\micha\appdata\local\programs\python\python37\python.exe' -c ' ...
Read more >
Installation — Chainer 7.8.1 documentation
NumPy will be installed automatically during the installation of Chainer. Before installing Chainer, we recommend that you upgrade setuptools and pip :.
Read more >
CuPy : NumPy & SciPy for GPU - Docker Hub
Installation. Wheels (precompiled binary packages) are available for Linux (x86_64) and Windows (amd64). Choose the right package for your platform.
Read more >
cupy-cuda114 - PyPI
CuPy : NumPy & SciPy for GPU. ... pip install cupy-cuda114. Copy PIP instructions ... This is a CuPy wheel (precompiled binary) package...
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