Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading "\lib\site-packages\torch\lib\shm.dll" or one of its dependencies #61

Open
cbellosoto opened this issue Jun 1, 2024 · 0 comments

Comments

@cbellosoto
Copy link

cbellosoto commented Jun 1, 2024

For anyone facing this error, when they try to run the demo, after installing the requirements.
Check if torch installed.
You can do check by going into the python CLI and trying to import torch manually.

Not sure why the issue is occuring but a quick google search reveals the error is with torch2.3 so downloading an older version will help
You can use the official instructions in pytorch.org to generate the install, but that wil default to the latest version 2.3

Simply specify version 2.2.2 or lower and update the index from cu116 to cu118
Example you can use below: (This will also install other pytorch livbraries which can come in handy in the future.

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

1 of the google solutions found here
https://stackoverflow.com/questions/74594256/pytorch-error-loading-lib-site-packages-torch-lib-shm-dll-or-one-of-its-depen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant