cudamat install nvcc fail on ubuntu

I have a GPU instance running on EC2 and I'm trying to install cudamat.

I've downloaded a copy to my home directory:

git clone https://github.com/cudamat/cudamat

Then I cd into that directory and run: sudo pip install .

Error is "command 'nvcc' failed with exit status 1.

Heres the full message: Unpacking /home/ubuntu/cudamat Running setup.py (path:/tmp/pip-s7db_8yv-build/setup.py) egg_info for package from file:///home/ubuntu/cudamat PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /tmp/pip-s7db_8yv-build

Installing collected packages: cudamat
  Running setup.py install for cudamat
    PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/tmp/pip-s7db_8yv-build

    building 'cudamat.libcudamat' extension
    nvcc -I/usr/include/python3.4m -c cudamat/cudamat.cu -o build/temp.linux-x86_64-3.4/cudamat/cudamat.o -O --ptxas-options=-v  --compiler-options=-fPIC
    error: command 'nvcc' failed with exit status 1
    Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-s7db_8yv-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-nulrhjnl-record/install-record.txt --single-version-externally-managed --compile:
    PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

/tmp/pip-s7db_8yv-build

running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-3.4

creating build/lib.linux-x86_64-3.4/cudamat

copying cudamat/learn.py -> build/lib.linux-x86_64-3.4/cudamat

copying cudamat/__init__.py -> build/lib.linux-x86_64-3.4/cudamat

copying cudamat/cudamat.py -> build/lib.linux-x86_64-3.4/cudamat

running egg_info

creating cudamat.egg-info

writing cudamat.egg-info/PKG-INFO

writing dependency_links to cudamat.egg-info/dependency_links.txt

writing top-level names to cudamat.egg-info/top_level.txt

writing manifest file 'cudamat.egg-info/SOURCES.txt'

warning: manifest_maker: standard file '-c' not found



reading manifest file 'cudamat.egg-info/SOURCES.txt'

writing manifest file 'cudamat.egg-info/SOURCES.txt'

copying cudamat/cudamat.cu -> build/lib.linux-x86_64-3.4/cudamat

copying cudamat/cudamat_kernels.cu -> build/lib.linux-x86_64-3.4/cudamat

copying cudamat/learn.cu -> build/lib.linux-x86_64-3.4/cudamat

copying cudamat/learn_kernels.cu -> build/lib.linux-x86_64-3.4/cudamat

copying cudamat/rnd_multipliers_32bit.txt -> build/lib.linux-x86_64-3.4/cudamat

running build_ext

building 'cudamat.libcudamat' extension

    creating build/temp.linux-x86_64-3.4

    creating build/temp.linux-x86_64-3.4/cudamat

    nvcc -I/usr/include/python3.4m -c cudamat/cudamat.cu -o build/temp.linux-x86_64-3.4/cudamat/cudamat.o -O --ptxas-options=-v --compiler-options=-fPIC

    error: command 'nvcc' failed with exit status 1

There is something wrong with the path. since nvcc was not found. heres when i type:

echo $PATH
/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

Anyone has an idea?

cheers

The error manifests itself only when sudo is used.

sudo changes the $PATH variable, depending on the security policy.

The problem is fixed if the following is used:

sudo env "PATH=$PATH" pip3 install .

cudamat install nvcc fail on ubuntu - amazon-ec2 - iOS, that directory and run: sudo pip install . Error is "command 'nvcc' failed with exit status 1. Heres the full message: Unpacking /home/ubuntu/cudamat Running� While testing after installation dont use import cudamatfrom the cudamat directory which will through an error saying cudamat/cudamat not found. It will look in the local directory. Go to home and use import cudamatit will work

amazon-ec2 - cudamat install nvcc fail on ubuntu, Ошибка проявляется только при использовании sudo. sudo изменяет переменную $ PATH, в зависимости от политики безопасности. Проблема� Installing CUDA 9.1 on Ubuntu 18.04 (circ. 5/18). GitHub Gist: instantly share code, notes, and snippets.

Clone from github

git clone https://github.com/cudamat/cudamat.git

This is only compatible with python 3

[Solved] Linux install fails: "unable to execute 'nvcc': No such file or , Tried to install using: sudo python setup.py install Got this error: (click to expand) or directory error: command 'nvcc' failed with exit status 1 running install running cudamat / cudamat Ubuntu 16.04.4 LTS Python 2.7.12� (Where /usr/local/cuda-6.5 is my current cuda installation. This makes nvcc visible by root) Inside the previous terminal: pip install . or pip3 install . (This will install cudamat for all users - python2 or python3 -)

Install error on Ubuntu 14.04, CUDA 6.5 with setup.py/pip � Issue , nvcc -I/usr/include/python2.7 -c cudamat/cudamat.cu -o unable to execute nvcc : No such file or directory error: command 'nvcc' failed with exi. Setting up cudamat in Ubuntu Machine October 26, 2013 erogol 2 Comments cudamat is a python library that makes you available to use CUDA benefits from Python instead of intricate low level approaches.

amazon-ec2, 这是完整的消息:解压/ home / ubuntu / cudamat正在运行setup.py( --compiler- options=-fPIC error: command 'nvcc' failed with exit status 1� I will try to figure out if this is something that has only changed in a recent version of nvcc, or something that should never have worked anyway.. It seems that gcc allows -O without any optimization level, but maybe not others, or nvcc checks itself.

Cuda 8.0 toolkit install - nvcc not found - ubuntu 16.04, This means that somehow my system fails to recognise the libcublas8.0 as a part of the nvcc. I think I may have messed up in setting the environment variables. Is it� As explained in the installation instructions, you can compile cudamat with a higher architecture if you want. The problem in your case is that it says the command failed with exit status 1. This is a serious problem, but the warning doesn't have anything to do with it.