Installation Error for CUDA 9.0, CUDNN 7.4.2, PyTorch 1.0.0 and gcc version 8.3.0 in conda environment
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 9k
- Forks
- 1.5k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 3
Description
Hi,
I am trying to install NVIDIA apex in the conda environment with gcc version 8.3.0, Python 3.6, PyTorch 1.0.0, CUDA 9.0, and CUDNN 7.4.2.
I have cloned the git repository followed by the command:
pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
However, the installation fails throwing the following error:
[Errno 13] Permission denied: '/tmp/pip-req-build-1n8g2_ji/.git/objects/pack/pack-5da80716422dd2646495486504d78fa819a5b880.pack'
I have also followed the discussions regarding similar issues #Install Error #1102 and #1082, and run the commands
git reset --hard a651
pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
Unfortunately, none of it solves the issue. Please help me in resolving it. Here is the complete error log:
Using pip 21.0.1 from /home/aish/.conda/envs/proj_123/lib/python3.6/site-packages/pip (python 3.6)
Non-user install because site-packages writeable
Created temporary directory: /tmp/pip-ephem-wheel-cache-emg09ybi
Created temporary directory: /tmp/pip-req-tracker-hl27jqi4
Initialized build tracking at /tmp/pip-req-tracker-hl27jqi4
Created build tracker: /tmp/pip-req-tracker-hl27jqi4
Entered build tracker: /tmp/pip-req-tracker-hl27jqi4
Created temporary directory: /tmp/pip-install-vr37inzq
Processing /home/aish/proj_dir1/proj_dir/bddoia_project/maskrcnn/apex
Created temporary directory: /tmp/pip-req-build-y72d4ewk
ERROR: Could not install packages due to an OSError.
Traceback (most recent call last):
File "/home/aish/.conda/envs/proj_123/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 317, in run
reqs, check_supported_wheels=not options.target_dir
File "/home/aish/.conda/envs/proj_123/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 101, in resolve
req, requested_extras=(),
File "/home/aish/.conda/envs/proj_123/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 306, in make_requirement_from_install_req
version=None,
File "/home/aish/.conda/envs/proj_123/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 169, in _make_candidate_from_link
name=name, version=version,
File "/home/aish/.conda/envs/proj_123/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 306, in __init__
version=version,
File "/home/aish/.conda/envs/proj_123/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 144, in __init__
self.dist = self._prepare()
File "/home/aish/.conda/envs/proj_123/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 226, in _prepare
dist = self._prepare_distribution()
File "/home/aish/.conda/envs/proj_123/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 312, in _prepare_distribution
self._ireq, parallel_builds=True,
File "/home/aish/.conda/envs/proj_123/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 457, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "/home/aish/.conda/envs/proj_123/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 482, in _prepare_linked_requirement
self.download_dir, hashes,
File "/home/aish/.conda/envs/proj_123/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 221, in unpack_url
_copy_source_tree(link.file_path, location)
File "/home/aish/.conda/envs/proj_123/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 163, in _copy_source_tree
copy_function=_copy2_ignoring_special_files,
File "/home/aish/.conda/envs/proj_123/lib/python3.6/shutil.py", line 365, in copytree
raise Error(errors)
shutil.Error: [('/home/aish/proj_dir1/proj_dir/bddoia_project/maskrcnn/apex/.git/objects/pack/pack-5da80716422dd2646495486504d78fa819a5b880.idx', '/tmp/pip-req-build-y72d4ewk/.git/objects/pack/pack-5da80716422dd2646495486504d78fa819a5b880.idx', "[Errno 13] Permission denied: '/tmp/pip-req-build-y72d4ewk/.git/objects/pack/pack-5da80716422dd2646495486504d78fa819a5b880.idx'"), ('/home/aish/proj_dir1/proj_dir/bddoia_project/maskrcnn/apex/.git/objects/pack/pack-5da80716422dd2646495486504d78fa819a5b880.pack', '/tmp/pip-req-build-y72d4ewk/.git/objects/pack/pack-5da80716422dd2646495486504d78fa819a5b880.pack', "[Errno 13] Permission denied: '/tmp/pip-req-build-y72d4ewk/.git/objects/pack/pack-5da80716422dd2646495486504d78fa819a5b880.pack'")]
Removed build tracker: '/tmp/pip-req-tracker-hl27jqi4'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported pip install command and the complete traceback, focusing on the permission failure while copying .git/objects/pack into /tmp. Reproduce the installation in the stated Python, PyTorch, CUDA, and conda environment; done means the Apex installation completes without the reported OSError.
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