-
Notifications
You must be signed in to change notification settings - Fork 43
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
import pyg_lib
fails due to OSError: dlopen ... (no such file)
on macOS
#323
Comments
I think you should try a conda... it's difficult for Mac to set py environment with pip. |
Do you mind to clarify how you installed PyTorch and |
Hello, I have the same problem in macOS M2.
First, I installed pyg_lib via pipenv. pipenv run pip install torch~=2.3.0 torch-geometric~=2.5.2 --no-cache-dir
# https://pytorch-geometric.readthedocs.io/en/latest/install/installation.html
pipenv run pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv \
-f https://data.pyg.org/whl/torch-2.3.0+cpu.html \
--no-cache-dir Then, I ran the following command and got same error. python -c "import pyg_lib; print(pyg_lib.__version__)
Thank you, |
Hello, I also have the same issue on macOS Intel pyg-lib version: 0.4.0+pt22
|
Somehow |
import pyg_lib
fails due to OSError: dlopen ... (no such file)
on macOS
A less simple solution to this problem is to soft link |
It seems that even installing from Python official solves it, but the error message changes somewhat @rusty1s.
It seems that is still expecting packages elsewhere. I'm running this on M3 Pro Mac, using Python3.11.8, torch 2.3.0, torch_geometric >=2.5.3. I'm thinking of doing @Linnore proposal for now. |
🐛 Describe the bug
I have installed the torch and torch_sparse and pyg_lib packages successfully, but when I import torch_sparse just report error as folling:
Environment
pyg-lib
version: 0.4.0+pt23pyg-lib
(conda
,pip
, source): pipThe text was updated successfully, but these errors were encountered: