Hmm, my error is:
ImportError: dlopen(/Users/tylcole/.virtualenvs/stanza/lib/python3.8/site-packages/torch/_C.cpython-38-darwin.so, 9): Library not loaded: @rpath/libc++.1.dylib
Referenced from: /Users/tylcole/.virtualenvs/stanza/lib/python3.8/site-packages/torch/_C.cpython-38-darwin.so
Reason: image not found
And I tried
install_name_tool -add_rpath /usr/lib /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/torch/_C.cpython-38-darwin.so
But the error that I get is:
error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: for: /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/torch/_C.cpython-38-darwin.so (for architecture x86_64) option “-add_rpath /usr/lib” would duplicate path, file already has LC_RPATH for: /usr/lib
I am just trying to use Python for one part in a project and I am getting stuck on this. I’m not too familiar with how it stores files and deals with virtual environments differently.