NVIDIA / apex

A PyTorch Extension: Tools for easy mixed precision and distributed training in Pytorch
BSD 3-Clause "New" or "Revised" License
8.39k stars 1.4k forks source link

apex install error #848

Open Mandule opened 4 years ago

Mandule commented 4 years ago

pip install -v --no-cache-dir --global-option="--pyprof" --global-option="--cpp_ext" --global-option="--cuda_ext" ./

ERROR: Command errored out with exit status 1: /home/lj/miniconda3/envs/py37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-19v2mexv/setup.py'"'"'; file='"'"'/tmp/pip-req-build-19v2mexv/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-4hegfng7/install-record.txt --single-version-externally-managed --compile --install-headers /home/lj/miniconda3/envs/py37/include/python3.7m/apex Check the logs for full command output.

ScottHoang commented 4 years ago

do you have setuptools install?

ethanjperez commented 4 years ago

I have setuptools installed and got this error. Might be related to https://github.com/NVIDIA/apex/issues/805