-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Import Error: DLL loaded failed when import torchvision #7468
Comments
The error is coming from |
Yes I notced that and tried to reinstall pillow once but it didn't work. |
What do you get when running |
seems nothing happened...I get into next command line without error prompt. |
What about |
Okay now I got a similar error prompt as what I got when import torchvision. Traceback (most recent call last): So does it mean the problem is caused by pillow and I should try to find and reinstall some matched version of pillow? |
Yes.
Not sure what you mean here. This is not a version problem. I suspect In any case, this is out of scope for |
馃悰 Describe the bug
The error happened when I'm doing this:
The answers on Google said it's caused by unmatch of versions for pytorch and torchvision, but I've remove pytorch and torchvision several times and install them either by command line from official website or by pip locally install. But I still got this error whatever I do.
Versions
PyTorch version: 2.0.0+cu118
Is debug build: False
CUDA used to build PyTorch: 11.8
ROCM used to build PyTorch: N/A
OS: Microsoft Windows 11
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A
Python version: 3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:00:38) [MSC v.1934 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.22621-SP0
Is CUDA available: True
CUDA runtime version: 12.1.66
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 4080 Laptop GPU
Nvidia driver version: 531.29
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
Versions of relevant libraries:
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.23.3
[pip3] open-clip-torch==2.16.0
[pip3] pytorch-lightning==1.9.4
[pip3] torch==2.0.0+cu118
[pip3] torchaudio==2.0.0
[pip3] torchdiffeq==0.2.3
[pip3] torchmetrics==0.11.4
[pip3] torchsde==0.2.5
[pip3] torchvision==0.15.1+cu118
...
[conda] numpy 1.23.3 pypi_0 pypi
[conda] open-clip-torch 2.16.0 pypi_0 pypi
[conda] pytorch-cuda 11.8 h24eeafa_3 pytorch
[conda] pytorch-lightning 1.9.4 pypi_0 pypi
[conda] pytorch-mutex 1.0 cuda pytorch
[conda] torch 2.0.0+cu118 pypi_0 pypi
[conda] torchaudio 2.0.0 pypi_0 pypi
[conda] torchdiffeq 0.2.3 pypi_0 pypi
[conda] torchmetrics 0.11.4 pypi_0 pypi
[conda] torchsde 0.2.5 pypi_0 pypi
[conda] torchvision 0.15.1+cu118 pypi_0 pypi
The text was updated successfully, but these errors were encountered: