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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft Visual C++ Redistributable is not installed, this may lead to the DLL load failure. #126507

Open
ZJDATY opened this issue May 17, 2024 · 2 comments
Labels
module: binaries Anything related to official binaries that we release to users module: windows Windows support for PyTorch triage review triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@ZJDATY
Copy link

ZJDATY commented May 17, 2024

馃悰 Describe the bug

python
import torch

### log
image

Microsoft Visual C++ Redistributable is not installed, this may lead to the DLL load failure.
                 It can be downloaded at https://aka.ms/vs/16/release/vc_redist.x64.exe

I have installed this vc-resist.x64.exe. And there was no such warning before.I don't know what I've done recently that caused this warning to appear.I am using the Conda environment, and the pytorch installed in my other virtual environment did not show this warning.I searched for similar errors and tested them according to their methods.
#65214

where msvcp140.dll
where vcruntime140.dll
where vcruntime140_1.dll

Output:

(yolov-8) D:\pyworkspaces\deeplabv3-plus-pytorch>where msvcp140.dll
D:\ProgramData\Anaconda3\envs\yolov-8\msvcp140.dll
D:\ProgramData\Anaconda3\envs\yolov-8\Library\bin\msvcp140.dll
C:\Windows\System32\msvcp140.dll
D:\ProgramData\Anaconda3\msvcp140.dll
D:\ProgramData\Anaconda3\Library\bin\msvcp140.dll
D:\Program Files\JetBrains\PyCharm 2022.3.1\bin\msvcp140.dll

(yolov-8) D:\pyworkspaces\deeplabv3-plus-pytorch>where vcruntime140.dll
D:\ProgramData\Anaconda3\envs\yolov-8\vcruntime140.dll
D:\ProgramData\Anaconda3\envs\yolov-8\Library\bin\vcruntime140.dll
C:\Windows\System32\vcruntime140.dll
D:\ProgramData\Anaconda3\vcruntime140.dll
D:\ProgramData\Anaconda3\Library\bin\vcruntime140.dll

(yolov-8) D:\pyworkspaces\deeplabv3-plus-pytorch>where vcruntime140_1.dll
D:\ProgramData\Anaconda3\envs\yolov-8\vcruntime140_1.dll
D:\ProgramData\Anaconda3\envs\yolov-8\Library\bin\vcruntime140_1.dll
C:\Windows\System32\vcruntime140_1.dll
D:\ProgramData\Anaconda3\vcruntime140_1.dll
D:\ProgramData\Anaconda3\Library\bin\vcruntime140_1.dll

I have tried several solutions, including reinstalling the VS runtime software prompted, reinstalling different versions of Torch, and restarting the computer many times.

Versions

(yolov-8) D:\pyworkspaces\deeplabv3-plus-pytorch>python collect_env.py
Microsoft Visual C++ Redistributable is not installed, this may lead to the DLL load failure.
                 It can be downloaded at https://aka.ms/vs/16/release/vc_redist.x64.exe
Collecting environment information...
PyTorch version: 2.0.1+cu118
Is debug build: False
CUDA used to build PyTorch: 11.8
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 10 Enterprise
GCC version: Could not collect
Clang version: Could not collect
CMake version: version 3.27.1
Libc version: N/A

Python version: 3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.19041-SP0
Is CUDA available: True
CUDA runtime version: 11.8.89
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: GRID RTX8000-24Q
Nvidia driver version: 474.44
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture=9
CurrentClockSpeed=3600
DeviceID=CPU0
Family=1
L2CacheSize=
L2CacheSpeed=
Manufacturer=GenuineIntel
MaxClockSpeed=3600
Name=Intel(R) Xeon(R) Gold 6244 CPU @ 3.60GHz
ProcessorType=3
Revision=21767

Versions of relevant libraries:
[pip3] numpy==1.24.2
[pip3] onnx==1.13.1
[pip3] onnx-simplifier==0.4.26
[pip3] onnxconverter-common==1.14.0
[pip3] onnxruntime==1.14.1
[pip3] onnxsim==0.4.35
[pip3] torch==2.0.1+cu118
[pip3] torch-tb-profiler==0.4.3
[pip3] torchaudio==2.0.2+cu118
[pip3] torchvision==0.15.2+cu118
[conda] mkl                       2021.4.0                 pypi_0    pypi
[conda] numpy                     1.24.2                   pypi_0    pypi
[conda] torch                     2.0.1+cu118              pypi_0    pypi
[conda] torch-tb-profiler         0.4.3                    pypi_0    pypi
[conda] torchaudio                2.0.2+cu118              pypi_0    pypi
[conda] torchvision               0.15.2+cu118             pypi_0    pypi

cc @seemethere @malfet @osalpekar @atalman @peterjc123 @mszhanyi @skyline75489 @nbcsm @vladimir-aubrecht @iremyux @Blackhex @cristianPanaite

@mikaylagawarecki
Copy link
Contributor

Seems related to #65214

@mikaylagawarecki mikaylagawarecki added module: binaries Anything related to official binaries that we release to users module: windows Windows support for PyTorch triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels May 20, 2024
@ZJDATY
Copy link
Author

ZJDATY commented May 20, 2024

Seems related to #65214

I feel like I've encountered the same problem, but its problem hasn't been resolved either.I want to know what are the criteria for judging this warning? Has an error occurred?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: binaries Anything related to official binaries that we release to users module: windows Windows support for PyTorch triage review triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
Status: No status
Development

No branches or pull requests

2 participants