Jupyter OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

created at 11-11-2021 views: 97

I used jupyter well before, but after updating torch to version 1.10, all kinds of inexplicable problems suddenly appeared. Here is a summary

Torchvision cannot be imported

solution 1

You only need to find the _c.pyd file in the path indicated above, and then delete it.

solution 2

Another way is to uninstall and then reinstall torchvision

OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

This error usually occurs when I call plt, and jupyter will crash.

If you are using anaconda, and assuming your environment name is work, then you only need to find the libiomp5md.dll file in your environment path and delete it.

\path\to\Anaconda3\envs\work\Library\bin\libiomp5md.dll

created at:11-11-2021
edited at: 11-11-2021: