pyg_lib/torch_sparse couldn't find the python lib 3.12.4 installed via pyenv #9504
Replies: 1 comment
-
Issue was resolved by downloading python package from the official site, I installed the same version as the pyenv (3.12.4). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I installed python 3.12.4 and created an virtual env on top of it.
I successfully installed torch 2.3.1 and torch_geometric 2.5.3, and I can successfully run graph learning using venv.
Until that I need to use pyg_lib and torch_sparse.
The installation of pyg_lib and torch_sparse is fine. But when I try to import it, it pops an error that certain Python path can not be found, refer to below:
It seems pyg_lib tried to search for system installed python, while the python 3.12.4 I used to create the virtual env is install via pyenv, which saved python libs under $HOME/.pyenv folder.
Anyway to fix this?
Beta Was this translation helpful? Give feedback.
All reactions