Failed to load image Python extension: Filename or extension too long

Hi,

I am trying to build dream fusion in my local. I keep getting the following error.

site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: '[WinError 206] The filename or extension is too long: ‘C:\…\lib\site-packages\torchvision’'If you don’t plan on using image functionality from torchvision.io, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg or libpng installed before building torchvision from source?

I have a windows system and I have tried enabling LongPathsEnabled in the registory. I even tried creating symbolic link to shorter the path, but the error still persists.

I reinstalled the pytorch library from scratch and it started working.