Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error and a warning when run setup.py #25

Open
yangjiangeyjg opened this issue Sep 17, 2021 · 6 comments
Open

An error and a warning when run setup.py #25

yangjiangeyjg opened this issue Sep 17, 2021 · 6 comments

Comments

@yangjiangeyjg
Copy link

yangjiangeyjg commented Sep 17, 2021

UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2
@linchuming

@yangjiangeyjg yangjiangeyjg changed the title An error and warning when run setup.py An error and a warning when run setup.py Sep 17, 2021
@linchuming
Copy link
Collaborator

@yangjiangeyjg, thanks for your interest.
Because we need to compile our boundary pooling operation in setup.py, C++ compiler is necessary. According your error information, you should install Visual Studio 15 or higher version in Windows OS. I recommend that the environment of Linux OS + NVIDIA GPU is easier to setup our AFSD.

@yangjiangeyjg
Copy link
Author

yangjiangeyjg commented Sep 17, 2021

@yangjiangeyjg, thanks for your interest.
Because we need to compile our boundary pooling operation in setup.py, C++ compiler is necessary. According your error information, you should install Visual Studio 15 or higher version in Windows OS. I recommend that the environment of Linux OS + NVIDIA GPU is easier to setup our AFSD.
Thanks, my VS's version is 14.
@linchuming

@yangjiangeyjg
Copy link
Author

@yangjiangeyjg, thanks for your interest.
Because we need to compile our boundary pooling operation in setup.py, C++ compiler is necessary. According your error information, you should install Visual Studio 15 or higher version in Windows OS. I recommend that the environment of Linux OS + NVIDIA GPU

There are still errors here. Can I compile it under Windows OS?@linchuming

  • D:\D2\anaconda\conda\envs\AFSD\lib\site-packages\torch\utils\cpp_extension.py:209:UserWarning: Error checking compiler version for cl: Command 'cl' returned non-zero exit status 3221225781. warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
  • D:\D2\anaconda\conda\envs\AFSD\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(624): note: see reference to class template instantiation 'c10::ArrayRefc10::IValue' being compiled
    error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

@linchuming
Copy link
Collaborator

@yangjiangeyjg
I didn't try to compile AFSD in Windows and I am sorry for your problem because of lacking relevant experience.

@linchuming linchuming reopened this Sep 23, 2021
@louishao
Copy link

louishao commented Nov 2, 2021

There is a question I want to consult with the author. What are the versions of CUDA and cuDNN used for compilation?

@wenzhengzeng
Copy link

wenzhengzeng commented Apr 30, 2022

Can this code work with torch>1.7.0? The reason is that my CUDA version is 11, which may not work with torch 1.4. I have tried to run setup.py but failed, I don't know if torch version is the main cause. My torch vision is 1.7.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants