PyCharm中import torchvision出错

PyCharm中导入torchvision模块,运行后报UserWarning: Failed to load image Python extension: Could not find module 'C:\Users\12567\Anaconda3\envs\PyTorch\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.

warn(f"Failed to load image Python extension: {e}")的错误,点开后是在image.py中报错的

try:
_load_library("image")
except (ImportError, OSError) as e:
warn(f"Failed to load image Python extension: {e}")

请问这个应该怎么解决呢

没有找到图片文件,用\代替\试试,或者把它和py文件放一个文件夹,然后用相对路径试试,主要就是路径问题