Solvedcupy Can't install via Pip

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 command python setup.py egg_info:
    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++
    /home/ubuntu/anaconda2/envs/thingy/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.2.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lcuda
    Options: {'profile': False, 'linetrace': False, 'annotate': False, 'no_cuda': False}
    Include directories: ['/usr/local/cuda/include']
    Library directories: ['/usr/local/cuda/lib64']
    Cannot build a stub file.
    Original error: command '/home/ubuntu/anaconda2/envs/thingy/bin/x86_64-conda_cos6-linux-gnu-c++' failed with exit status 1
    **************************************************
    *** WARNING: Cannot link libraries: ['cublas', 'cuda', 'cudart', 'curand', 'cusparse', 'nvrtc', 'nvToolsExt']
    *** WARNING: Skip installing cuda support
    *** WARNING: Check your LDFLAGS environment variable
    **************************************************
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-r2jn275v/cupy/setup.py", line 32, in <module>
        ext_modules = cupy_setup_build.get_ext_modules()
      File "/tmp/pip-build-r2jn275v/cupy/cupy_setup_build.py", line 378, in get_ext_modules
        extensions = make_extensions(arg_options, compiler, use_cython)
      File "/tmp/pip-build-r2jn275v/cupy/cupy_setup_build.py", line 268, 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 /tmp/pip-build-r2jn275v/cupy/
18 Answers

โœ”๏ธAccepted Answer

Actually, pip install --pre cupy-cuda90 solved the problem.

Other Answers:

Cloud you use latest version? You can run pip install cupy --pre command. We improved message during installation. Maybe you can get more useful information.

And, we provides binary package as experimental ( link ).

Related Issues:

34
cupy Can't install via Pip
Actually pip install --pre cupy-cuda90 solved the problem. Tried to install via pip install cupy but...
654
nvidia docker OpenCV Docker error "ImportError: libSM.so.6: cannot open shared object file: No such file or directory"
I fixed this problem on nvcr.io/nvidia/tensorflow:18.12-py3 with (using solution above): ...
316
nvidia docker docker: Error response from daemon: Unknown runtime specified nvidia.
I've also installed correctly but forgot to restart daemon in ubuntu it may resolve your error. ...
236
nvidia docker could not select device driver "" with capabilities: [[gpu]].
Hello! If you didn't already make sure you've installed the nvidia-container-toolkit If this doesn't...
106
nvidia docker docker: Error response from daemon: OCI runtime create failed: unable to retrieve OCI runtime error
sudo apt install nvidia-container-runtime worked for me. The template below is mostly useful for bug...
77
arrayfire NVCC does not support Apple Clang version 8.x
@joseph-zhong it looks like you're using Xcode 8.3 which CUDA (v8.0.61) does not yet support :( Down...
61
kaldi Is there any speaker diarization documentation and already trained model?
@iacoshoria the recipe is not bound to this dataset We are talking about making a diarization recipe...
50
Open3D ImportError: /lib64/libm.so.6: version 'GLIBC_2.27' not found
I met the same question after pip install and I solved it by specifying a version python -m pip inst...
37
nvidia docker Failed to install nvidia-container-toolkit on Ubuntu 18.04 with ppc64le
Hello! In README document Ubuntu 16.04/18.04/20.04 Debian Jessie/Stretch/Buster section there is com...
30
cuda samples Can't compile cuda samples
@magistri @Helenll @Evanslooten you can continue the build with make -k while using master Makefile ...
28
nvidia docker Connect nvidia-docker as remote python interpreter in Pycharm
q&d-workaround: only set docker default-runtime to nvidia ...by adding line default-runtime: nvidia ...
28
numba Python 3.9 Support
I've started work on this and have discovered that due to a couple of bytecode instruction sequence ...
21
nvidia docker cgroup issue with nvidia container runtime on Debian testing
Fix on Arch: Edit /etc/nvidia-container-runtime/config.toml and change #no-cgroups=false to no-cgrou...
20
nvidia docker NVIDIA-SMI couldn't find libnvidia-ml.so library in your system
I'm hitting it as well on a very similar setup i.e 1 ...
17
numba Improve support on debugging Numba
!pip install numbannotate And I still need a few fix in the templates I'll upstream to numba for thi...
16
nvidia docker Invalid signature BADSIG F60F4B3D7FA2AF80 on Ubuntu 16.04
Does it work if the repo is set as https? Try the following inside the container: ...
16
nvidia docker CUDA / Docker & GPG error
I don't know when it will be fixed This is a potential workaround: 1 Issue or feature description: I...
16
Open3D JVisualizer python27 AttributeError: 'module' object has no attribute 'PointCloud'
pip install open3d-python fixes the no attribute 'PointCloud' problem for me I'm using Ubuntu 16.04 ...
15
nvidia docker invalid: BADSIG F60F4B3D7FA2AF80 cudatools <cudatools@nvidia.com>
I got the same error in China The problem was solved. I got the same problem as #571 and #613 When I...
14
nvidia docker gpg: no valid OpenPGP data found.
I have the same problem.It could be an IP problem [solved] Step1 Open this website https://github.io...
14
nvidia docker libnvcuvid.so.1 depends on libGL.so.1
No please don't install the driver inside the container :) The image won't be portable to other mach...
14
hashcat Hashcat 4.1.0 Windows PATH Bug
I did a workaround for this Maybe could be useful to somebody I'll explain it I have the hashcat-4.1...
13
nvidia docker Tensorflow fails with cuDevicePrimaryCtxRetain: CUDA_ERROR_INVALID_DEVICE
Your driver is in a weird state or nvidia-docker couldn't initialize the driver Executing sudo nvidi...
13
nvidia docker nvidia-docker2 has unmet dependencies that are installed
Me too Here's the error I'm getting: The template below is mostly useful for bug reports and support...
11
nvidia docker Ubuntu 17.10: nvidia-docker2 : Depends: docker-ce (= 17.12.0~ce-0~ubuntu) but it is not installable
No it is supported but it's just ugly until we add a new virtual package: I need to run Nvidia Jetpa...
11
nvidia docker Error on "docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi"
@flx42 I'm on debian and 384.130 is actually the latest driver in stable Hi all ...
9
hashcat "inc_vendor.h" file not found on MacOS Catalina 10.15.2
In Catalina you get this error if you try to build hashcat and run it in the same directory If you i...
6
nvidia docker Updating cpu-manager-policy=static causes NVML unknown error
Unfortunately this is a known issue What happened: After setting the cpu-manager-policy=static of ku...
5
nvidia docker Fedora installation procedure
Here's what I just did based on @rickycorte 's instructions and #553 (comment) to get nvidia-docker ...
5
hashcat M1 Pro | No device found/left
Hi guys good news for you I got an apple with M1 so .. please try this branch let me know ...
5
Open3D Open 3D package for Apple silicon M1
Hi @DikZoo you may try this experimental build let me know if it works for you ...
4
nvidia docker Error: unsupported Docker version (with new docker version v17.03.0-ce)
@QuentinG3 I fixed that on master we will release 1.0.1 today @jokla your problem is different I bel...
3
Open3D Convert Realsense poincloud in Open3D pointcloud
To test te most efficient way to show in realtime the pointcloud from Realsense ...
3
einops [Feature suggestion] Identifiers not on both sides of the expression
@jotaf98 it is done and available in master branch Axes of size 1 can be written as 1 not () ...
387
pytorch I can't import PyTorch, libomp.dylib can't be loaded.
brew install libomp solves the problem. ๐Ÿ› Bug I tried to install PyTorch but I can't use it ...
380
pytorch RuntimeError: cuda runtime error (59) : device-side assert triggered when running transfer_learning_tutorial
@soumith Hi I find the error it is due to my labels contain value -1 which is unacceptable in criter...
254
pytorch ModuleNotFoundError: No module named 'torch._C'
Solution the problem is that you have a folder called torch in the same directory which is being pic...
194
pytorch RuntimeError: DataLoader worker is killed by signal: Killed.
I've encountered the same problem recently If you're using the docker to run the PyTorch program wit...
176
pytorch [PyTorch][Feature Request] Label Smoothing for CrossEntropyLoss
Here is my implement Hi guys The type torch.LongTensor of target will hinder the implementation like...
146
pytorch optimizer load_state_dict() problem?
@apaszke Ah my bad I forgot to update the line where the optimizer is recreated But otherwise the fo...
90
pytorch RuntimeError: CUDA error: an illegal memory access was encountered
@jzazo Hi I had similar problem If I use device = torch.device(cuda:1) Hi,everyone! I met a strange ...
86
alacritty Tmux austostart?
It should be like this: Which operating system does the issue occur on? MacOS Catalina I understood ...
81
pytorch can't reproduce results even set all random seeds
Here are some points to check: https://pytorch.org/docs/stable/notes/randomness.html : Pytorch is no...
80
pytorch how should I cite PyTorch in the paper?
For now you could cite our NIPS 2017 workshop paper that discusses just the autodiff engine of PyTor...
78
alacritty Support for Alt+key (option as meta)
With latest alacritty and tmux I finally got forward and backward movement with the following: ...
78
pytorch RuntimeError: freeze_support()
@shinalone Actually you can remove the freeze_support line but the if __name__ == '__main__:' is nec...
69
pytorch file_descriptor sharing strategy may be leaking FDs, resulting in DataLoader causing RuntimeError: received 0 items of ancdata
This does seem to be an issue in pytorch as best as we can tell - FDs aren't being released when the...
67
pytorch Pylint Error torch.tensor is not callable
This error is still popping out even with in the .pylintrc file ๐Ÿ› Bug Pylint returns the error torc...