When calling matplotlib under the pytorch framework, an error occurred. After trying many methods, it still doesn’t work.
There are two libiomp5md.dll
Search for libiomp5md.dll
under anaconda, there will be multiple, delete the torch/
directory, remember to backup (directory and file). problem solved.
You can’t delete the file in your original compilation environment. If you delete it, plt.show()
will not be shown. This is a problem I encountered. The above solution is only my personal problem solving, you can try several more methods, I tried all the basic methods under this search, but still have not solved it, and finally tried it out by myself. Finally, remember to back up. Be sure to remember the path of the backup file.