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.

Can't install via Pip

See original GitHub issue

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/

Issue Analytics

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

github_iconTop GitHub Comments

40reactions
yueqiwcommented, Mar 13, 2018

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

4reactions
okutacommented, Feb 20, 2018

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 ).

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't install any package using pip - Stack Overflow
As a workaround you can try to pass the --no-cache-dir option to pip, or explicitly pass a --cache-dir consisting of onyl ascii characters....
Read more >
How to install modules with PIP (and fix it when it fails) - Medium
Then simply run the file with python. This should install pip for you and get it working. Make sure to try using pip3...
Read more >
How to Install Pip on Windows - ActiveState
Open up the Control Panel and navigate to System and Security -> System; Click on the Advanced system settings link on the left...
Read more >
How To Fix PIP Install Not Working? - TechNewsToday
Include PIP During Installation · Press Win + R, type appwiz.cpl , and press Enter. · Select Python from the list and press...
Read more >
Can't install anything on pip - Super User
The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been...
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