Error In Installing Apex
rajgar114 opened this issue · 0 comments
rajgar114 commented
I am facing the issue when executing the following code:
%%writefile setup.sh
# install apex to be able to use mix precision
export CUDA_HOME=/usr/local/cuda-10.1
git clone https://github.com/NVIDIA/apex
pip install -v -q --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./apex
!sh setup.sh
Error:
Cloning into 'apex'...
remote: Enumerating objects: 8038, done.
remote: Counting objects: 100% (125/125), done.
remote: Compressing objects: 100% (91/91), done.
remote: Total 8038 (delta 58), reused 68 (delta 29), pack-reused 7913
Receiving objects: 100% (8038/8038), 14.10 MiB | 27.30 MiB/s, done.
Resolving deltas: 100% (5459/5459), done.
/usr/local/lib/python3.7/dist-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)
Processing ./apex
Skipping wheel build for apex, due to binaries being disabled for it.
Installing collected packages: apex
Running setup.py install for apex ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-moz3kph1/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-moz3kph1/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-yn_jld87/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
Please help me to resolve this. I am running the same notebook as it is. Do let me know if you need anything else @patrickvonplaten