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

UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件 #372

Open
Saltsmart opened this issue Aug 10, 2022 · 1 comment

Comments

@Saltsmart
Copy link
Contributor

🐛 Bug

import cogdl 时提示:

c:\ProgramData\Anaconda3\envs\d2l\lib\site-packages\torch\utils\cpp_extension.py:316: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn(f'Error checking compiler version for {compiler}: {error}')

但再次import,恢复正常

To Reproduce

Steps to reproduce the behavior:

  1. 启动jupyter notebook 或 ipython
  2. 执行import cogdl

Expected behavior

正常执行,无任何提示

Environment

  • CogDL version: v0.5.3
  • OS (e.g., Linux): Windows 10 (10.0.19044)
  • Python version: 3.8.12
  • PyTorch version: 1.10.2
  • CUDA/cuDNN version (if applicable): 11.3.1 (cudatoolkit)
  • Any other relevant information: None

Additional context

@cenyk1230
Copy link
Member

Hi @Saltsmart,

It seems that the warning is caused by the PyTorch rather than CogDL.

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

2 participants