Open TD-wzw opened 3 years ago
I am also having the same issue. Any kind of help is appreciated.
me too
me too
if you input "nvcc -V ", your output must be "cuda 10.1", so you can try to uninstall the cuda 10.2, and install a cuda 10.1 in conda virtual environment.
Hi @zwenyuan1 , I don't think that's a good option to remove and reinstall cuda 10.1. I have cuda 10.2 installed and a pytorch version of 1.6.0 + cu101. I can install it successfully now. The issue seems to resolved for me once I comment out line 101-107 inside setup.py file. The main problem is that it tries to check the version of pytorch (bare_metal_version) installed inside our local pc and by commenting out those lines, we are suppressing apex to not check for the pytorch version locally installed. Commenting those lines are fine according to the comment made inside setup.py file by the author. Hope this helps for everyone !!
setup.py里面的 check_cuda_torch_binary_vs_bare_metal函数进行更改,直接return
then: pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
Thank you all for your help