DragGAN icon indicating copy to clipboard operation
DragGAN copied to clipboard

Error: warnings.warn(f'Error checking compiler version for {compiler}: {error}')

Open ruY9527 opened this issue 1 year ago • 5 comments

image Hi, I have looked through all the issues and found no relevant errors. Can you please tell me what are the errors regarding this information? the specific errors and the commands I executed are in the attached images.

ruY9527 avatar May 23 '23 14:05 ruY9527

@ruY9527 I had a same issue that was solved by installing VS 2017 or 209 on my local. After installing VS 20xx, open the vs developer prompt window and get the cl path by typing where cl. Take the directory of your cl.exe file and add it to your PATH environment. After that, the issue will go away.

WeiquanWa avatar May 23 '23 14:05 WeiquanWa

昨晚搞定了,首先你要下载vs2019,然后安装c++,然后根据这篇csdn进行环境变量的配置https://blog.csdn.net/SINPER123/article/details/124920875

zb-zuishuai avatar May 24 '23 01:05 zb-zuishuai

Thanks for the guide,

I needed to pip install IPython

And also needed to add the python libs to the LIB environment variable :
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x64;C:\Users\XXX\AppData\Local\Programs\Python\Python310\libs

Then it started

Bigfield77 avatar May 24 '23 03:05 Bigfield77

用everything找到了cl.exe的位置,然后添加到环境变量path中

20070951 avatar May 24 '23 06:05 20070951

Just install MSVS19 and then run these cmd on the anaconda prompt: %comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" and then set DISTUTILS_USE_SDK=1

justinjohn0306 avatar May 25 '23 11:05 justinjohn0306