Open evan0621 opened 4 years ago
I had the same problem :(
I had the same problem :( too
I think I just found a work around:
I downgraded CUDA to 10.0 instead of 10.1 and used cudnn7.6, pytorch 1.2, python 3.6
according to https://github.com/NVIDIA/apex/issues/802#issuecomment-626484107,
I rolled back the repo:
git checkout f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0
those operations worked for me!
I think I just found a work around:
I downgraded CUDA to 10.0 instead of 10.1 and used cudnn7.6, pytorch 1.2, python 3.6
according to #802 (comment),
I rolled back the repo:
git checkout f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0
those operations worked for me!
Still not work I need CUDA 10.1
I have met this error too. Can anyone give some suggestions?
I have met this error too. Can anyone give some suggestions?
same :(
in my case the problem was with the specific version of cuda 10.1, turns out there were 3 versions:
when I switched to the latter one (it should be called cuda_10.1.243_418.87.00_linux.run on linux) it suddenly all worked.
Same problem :( Environment: cuda 10.1.105 / Python 3.7.7 / PyTorch 1.5.1 / gcc 7.4.0 / CentOS 7.7.
I got the same error when I installing. My environment: Ubuntu 16.04 pip3 20.1 CUDA 10.2 Pytorch 1.15.0 torch.version.cuda=10.2 gcc version 5.4
After I downgraded pip3 from 20.1 to 19.1, it all worked.
I had the same problem with pytorch 1.5.1 and CUDA 10.1 Downgrading pytorch to 1.4 fixes this issue.
Failed also with:
Rebase to f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0 work for me
`pip install -v --no-cache-dir --global-option="--pyprof" --global-option="--cpp_ext" --global-option="--cuda_ext" ./ /home/lab70636/anaconda3/envs/yolov4/lib/python3.7/site-packages/pip/_internal/commands/install.py:243: UserWarning: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option. cmdoptions.check_install_build_global(options) Non-user install because site-packages writeable Created temporary directory: /tmp/pip-ephem-wheel-cache-t2a0gdss Created temporary directory: /tmp/pip-req-tracker-_p1gz3j9 Initialized build tracking at /tmp/pip-req-tracker-_p1gz3j9 Created build tracker: /tmp/pip-req-tracker-_p1gz3j9 Entered build tracker: /tmp/pip-req-tracker-_p1gz3j9 Created temporary directory: /tmp/pip-install-n5v70o32 Processing /home/lab70636/yolov4pytorch/apex Created temporary directory: /tmp/pip-req-build-muuvcfa Added file:///home/lab70636/yolov4_pytorch/apex to build tracker '/tmp/pip-req-tracker-p1gz3j9' Running setup.py (path:/tmp/pip-req-build-muuvcfa/setup.py) egg_info for package from file:///home/lab70636/yolov4pytorch/apex Created temporary directory: /tmp/pip-pip-egg-info-irlhbm2 Running command python setup.py egg_info torch.version = 1.5.0 running egginfo creating /tmp/pip-pip-egg-info-irlhbm2/apex.egg-info writing /tmp/pip-pip-egg-info-irlhbm2_/apex.egg-info/PKG-INFO writing dependencylinks to /tmp/pip-pip-egg-info-irlhbm2/apex.egg-info/dependencylinks.txt writing top-level names to /tmp/pip-pip-egg-info-irlhbm2/apex.egg-info/toplevel.txt writing manifest file '/tmp/pip-pip-egg-info-irlhbm2/apex.egg-info/SOURCES.txt' reading manifest file '/tmp/pip-pip-egg-info-irlhbm2/apex.egg-info/SOURCES.txt' writing manifest file '/tmp/pip-pip-egg-info-irlhbm2/apex.egg-info/SOURCES.txt' /tmp/pip-req-build-muuvcfa/setup.py:46: 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-muuvcfa has version 0.1, which satisfies requirement apex==0.1 from file:///home/lab70636/yolov4_pytorch/apex Removed apex==0.1 from file:///home/lab70636/yolov4_pytorch/apex from build tracker '/tmp/pip-req-tracker-p1gz3j9' Skipping wheel build for apex, due to binaries being disabled for it. Installing collected packages: apex Created temporary directory: /tmp/pip-record-bvv1iexa Running command /home/lab70636/anaconda3/envs/yolov4/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-muuvcfa/setup.py'"'"'; file='"'"'/tmp/pip-req-build-muuvcfa_/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --pyprof --cpp_ext --cuda_ext install --record /tmp/pip-record-bvv1iexa/install-record.txt --single-version-externally-managed --compile --install-headers /home/lab70636/anaconda3/envs/yolov4/include/python3.7m/apex torch.version = 1.5.0
ERROR: Command errored out with exit status 1: /home/lab70636/anaconda3/envs/yolov4/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-muuvcfa/setup.py'"'"'; file='"'"'/tmp/pip-req-build-muuvcfa/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --pyprof --cpp_ext --cuda_ext install --record /tmp/pip-record-bvv1iexa/install-record.txt --single-version-externally-managed --compile --install-headers /home/lab70636/anaconda3/envs/yolov4/include/python3.7m/apex Check the logs for full command output. Exception information: Traceback (most recent call last): File "/home/lab70636/anaconda3/envs/yolov4/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 841, in install req_description=str(self.req), File "/home/lab70636/anaconda3/envs/yolov4/lib/python3.7/site-packages/pip/_internal/operations/install/legacy.py", line 86, in install raise LegacyInstallFailure pip._internal.operations.install.legacy.LegacyInstallFailure
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/lab70636/anaconda3/envs/yolov4/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 188, in _main status = self.run(options, args) File "/home/lab70636/anaconda3/envs/yolov4/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 185, in wrapper return func(self, options, args) File "/home/lab70636/anaconda3/envs/yolov4/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 407, in run use_user_site=options.use_user_site, File "/home/lab70636/anaconda3/envs/yolov4/lib/python3.7/site-packages/pip/_internal/req/init.py", line 71, in install_given_reqs *kwargs File "/home/lab70636/anaconda3/envs/yolov4/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 845, in install six.reraise(exc.parent) File "/home/lab70636/anaconda3/envs/yolov4/lib/python3.7/site-packages/pip/_vendor/six.py", line 703, in reraise raise value File "/home/lab70636/anaconda3/envs/yolov4/lib/python3.7/site-packages/pip/_internal/operations/install/legacy.py", line 76, in install cwd=unpacked_source_directory, File "/home/lab70636/anaconda3/envs/yolov4/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 274, in runner spinner=spinner, File "/home/lab70636/anaconda3/envs/yolov4/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 241, in call_subprocess raise InstallationError(exc_msg) pip.internal.exceptions.InstallationError: Command errored out with exit status 1: /home/lab70636/anaconda3/envs/yolov4/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-muuvcfa/setup.py'"'"'; file='"'"'/tmp/pip-req-build-muuvcfa_/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --pyprof --cpp_ext --cuda_ext install --record /tmp/pip-record-bvv1iexa/install-record.txt --single-version-externally-managed --compile --install-headers /home/lab70636/anaconda3/envs/yolov4/include/python3.7m/apex Check the logs for full command output. 1 location(s) to search for versions of pip:
I got this error when I installing Ubuntu 18.04 conda 4.8.2 CUDA 10.1 Pytorch 1.15.0 torch.version.cuda=10.1 gcc version 7.5.0
nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2019 NVIDIA Corporation Built on Fri_Feb__8_19:08:17_PST_2019 Cuda compilation tools, release 10.1, V10.1.105
Thanks for helping !