NVIDIA / NVIDIA/apex

Apex installation failure

Open
#622 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9k
Forks
1.5k
Avg merge
2d 4h
Merged PRs (30d)
3

Description

My version: CUDA=9.0 Pytorch = 1.0.1
Apex installation appears to have been unsuccessful, the following error always occurs,I don't know what went wrong, please help me:

/home/jingchengwang/anaconda3/lib/python3.5/site-packages/pip/_internal/commands/install.py:283: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
cmdoptions.check_install_build_global(options)
Created temporary directory: /tmp/pip-ephem-wheel-cache-wpjnm5os
Created temporary directory: /tmp/pip-req-tracker-bdks9yog
Created requirements tracker '/tmp/pip-req-tracker-bdks9yog'
Created temporary directory: /tmp/pip-install-jtxomsq8
Processing /home/jingchengwang/anaconda3/lib/python3.5/site-packages/apex
Created temporary directory: /tmp/pip-req-build-30_mpovs
Added file:///home/jingchengwang/anaconda3/lib/python3.5/site-packages/apex to build tracker '/tmp/pip-req-tracker-bdks9yog'
Running setup.py (path:/tmp/pip-req-build-30_mpovs/setup.py) egg_info for package from file:///home/jingchengwang/anaconda3/lib/python3.5/site-packages/apex
Running command python setup.py egg_info

Warning: Torch did not find available GPUs on this system.
 If your intention is to cross-compile, this is not an error.
By default, Apex will cross-compile for Pascal (compute capabilities 6.0, 6.1, 6.2),
Volta (compute capability 7.0), and Turing (compute capability 7.5).
If you wish to cross-compile for a single specific architecture,
export TORCH_CUDA_ARCH_LIST="compute capability" before running setup.py.

torch.__version__  =  1.0.1
running egg_info
creating /tmp/pip-req-build-30_mpovs/pip-egg-info/apex.egg-info
writing /tmp/pip-req-build-30_mpovs/pip-egg-info/apex.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-req-build-30_mpovs/pip-egg-info/apex.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-req-build-30_mpovs/pip-egg-info/apex.egg-info/top_level.txt
writing manifest file '/tmp/pip-req-build-30_mpovs/pip-egg-info/apex.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-req-build-30_mpovs/pip-egg-info/apex.egg-info/SOURCES.txt'
writing manifest file '/tmp/pip-req-build-30_mpovs/pip-egg-info/apex.egg-info/SOURCES.txt'
/tmp/pip-req-build-30_mpovs/setup.py:43: UserWarning: Option --pyprof not specified. Not installing PyProf dependencies!
  warnings.warn("Option --pyprof not specified. Not installing PyProf dependencies!")

Source in /tmp/pip-req-build-30_mpovs has version 0.1, which satisfies requirement apex==0.1 from file:///home/jingchengwang/anaconda3/lib/python3.5/site-packages/apex
Removed apex==0.1 from file:///home/jingchengwang/anaconda3/lib/python3.5/site-packages/apex from build tracker '/tmp/pip-req-tracker-bdks9yog'
Skipping wheel build for apex, due to binaries being disabled for it.
Installing collected packages: apex
Created temporary directory: /tmp/pip-record-rn3tyl3l
Running command /home/jingchengwang/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-30_mpovs/setup.py'"'"'; file='"'"'/tmp/pip-req-build-30_mpovs/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-rn3tyl3l/install-record.txt --single-version-externally-managed --compile

Warning: Torch did not find available GPUs on this system.
 If your intention is to cross-compile, this is not an error.
By default, Apex will cross-compile for Pascal (compute capabilities 6.0, 6.1, 6.2),
Volta (compute capability 7.0), and Turing (compute capability 7.5).
If you wish to cross-compile for a single specific architecture,
export TORCH_CUDA_ARCH_LIST="compute capability" before running setup.py.

torch.__version__  =  1.0.1
/tmp/pip-req-build-30_mpovs/setup.py:43: UserWarning: Option --pyprof not specified. Not installing PyProf dependencies!
  warnings.warn("Option --pyprof not specified. Not installing PyProf dependencies!")
which: no nvcc in (/home/jingchengwang/anaconda3/bin:/usr/java/jre1.8.0_121/bin:/usr/java/jre1.8.0_121/bin:/opt/tsce4/maui/sbin:/opt/tsce4/maui/bin:/opt/tsce4/torque6/bin:/opt/tsce4/torque6/sbin:/usr/local/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/ibutils/bin:/usr/local/protobuf/bin:.:/home/jingchengwang/.local/bin:/home/jingchengwang/bin)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-req-build-30_mpovs/setup.py", line 98, in <module>
    raise RuntimeError("--cuda_ext was requested, but nvcc was not found.  Are you sure your environment has nvcc available?  If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")
RuntimeError: --cuda_ext was requested, but nvcc was not found.  Are you sure your environment has nvcc available?  If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.
Running setup.py install for apex ... error

Cleaning up...
Removing source in /tmp/pip-req-build-30_mpovs
Removed build tracker '/tmp/pip-req-tracker-bdks9yog'
ERROR: Command errored out with exit status 1: /home/jingchengwang/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-30_mpovs/setup.py'"'"'; file='"'"'/tmp/pip-req-build-30_mpovs/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-rn3tyl3l/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
Exception information:
Traceback (most recent call last):
File "/home/jingchengwang/anaconda3/lib/python3.5/site-packages/pip/_internal/cli/base_command.py", line 153, in _main
status = self.run(options, args)
File "/home/jingchengwang/anaconda3/lib/python3.5/site-packages/pip/_internal/commands/install.py", line 455, in run
use_user_site=options.use_user_site,
File "/home/jingchengwang/anaconda3/lib/python3.5/site-packages/pip/_internal/req/init.py", line 62, in install_given_reqs
**kwargs
File "/home/jingchengwang/anaconda3/lib/python3.5/site-packages/pip/_internal/req/req_install.py", line 888, in install
cwd=self.unpacked_source_directory,
File "/home/jingchengwang/anaconda3/lib/python3.5/site-packages/pip/_internal/utils/subprocess.py", line 275, in runner
spinner=spinner,
File "/home/jingchengwang/anaconda3/lib/python3.5/site-packages/pip/_internal/utils/subprocess.py", line 242, in call_subprocess
raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /home/jingchengwang/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-30_mpovs/setup.py'"'"'; file='"'"'/tmp/pip-req-build-30_mpovs/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-rn3tyl3l/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
1 location(s) to search for versions of pip:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with setup.py and the reported installation command, focusing on the --cuda_ext path and the missing nvcc message under the stated Python and PyTorch versions. Done means the installation failure is explained and a verified installation path or repository change is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
build-system, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.