If I import torch from python 3.8.0, I get the following error:

OSError: libstdc++.so.6: cannot open shared object file: No such file or directory

11920×1080 626 KB

The strangest thing about it, however, is that I do have that shared object file and I can even grab it using ctypes.CDLL("libstdc++.so.6", mode=ctypes.RTLD_GLOBAL) exactly as pytorch tries and fails to do! After doing so, torch imports fine! What is going on, and how can I avoid having to put the ctypes.CDLL call before everytime I import torch in every file I use torch in?
working1920×1080 572 KB
Thanks,
Jack