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.

Install error on Ubuntu 14.04, CUDA 6.5 with setup.py/pip

See original GitHub issue

nvcc -I/usr/include/python2.7 -c cudamat/cudamat.cu -o build/temp.linux-x86_64-2.7/cudamat/cudamat.o -O --ptxas-options=-v --compiler-options '-fPIC' unable to execute nvcc: No such file or directory error: command 'nvcc' failed with exit status 1

There is little chance that this comes from my configuration, since I reverted to a346369447e9b2dbb730e4218a4c0eaa153840ef and ran make and the tests successfully.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
f0kcommented, Oct 26, 2016

Clearly nvcc compiler is not the path, then I tried PATH = PATH + “:/usr/local/cuda-7.5/bin”, it still doesn’t work

This doesn’t change where nvcc is searched for, that PATH is just a backup of the environment variable to avoid Anaconda sneaking in a wrong MSVC version on Windows. You’d need to modify os.environ['PATH'], or just change your PATH environment variable. Did you restart your terminal after changing the .bashrc? You can try echo $PATH to see if the path is correct.

Note that when you’re using sudo, the PATH will be overridden, no matter what you set it to. You can do sudo PATH="$PATH" ... to have the environment carry over.

0reactions
f0kcommented, Nov 7, 2017

@nateGeorge: What about pip install http://github.com/f0k/cudamat/archive/simplify-compile.zip, does this fail as well? It’s a little different, but not sure if this would help. Did you try installing with sudo or without?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install CUDA-6.5 on Ubuntu 14.04? - nvidia
Same error message with me, but none of the above answers helped in my case (Ubuntu 14.10). Therefore, first dissect the error message....
Read more >
Ubuntu 14.04 how to install cuda 6.5 without installing nvidia ...
CUDA Samples. So use the runfile installer method, and simply select "no" to the first prompt, if you don't want to install the...
Read more >
Wrong when install cuda in VMware "Incomplete ... - GitHub
Hello all, I installed Ubuntu 14.04 ,64 bit in VMware. ... A driver of version at least 340.00 is required for CUDA 6.5...
Read more >
NVIDIA CUDA Installation Guide for Linux
The installation instructions for the CUDA Toolkit on Linux.
Read more >
Installing Nvidia CUDA on Ubuntu 14.04 for Linux GPU ...
In this article I am going to discuss how to install the Nvidia CUDA toolkit for carrying out high-performance computing (HPC) with an...
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