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

Cannot install pyg-lib in any way available #408

Open
businessabstraction opened this issue Feb 19, 2025 · 2 comments
Open

Cannot install pyg-lib in any way available #408

businessabstraction opened this issue Feb 19, 2025 · 2 comments

Comments

@businessabstraction
Copy link

😵 Describe the installation problem

So far tried:

pip install pyg-lib
pip install pyg_lib

after and before installing pytorch, before and after installing pytorch-geomertic
the answer is the same:

ERROR: Could not find a version that satisfies the requirement pyg-lib (from versions: none)
ERROR: No matching distribution found for pyg-lib

also tried to do it together with pyg
pip install torch_geometric pyg_lib
The same answer as above
Also tried
pip install pyg-lib -f https://data.pyg.org/whl/torch-2.5.0+cu128.html
the same result
also tried
pip install git+https://github.com/pyg-team/pyg-lib.git
The output:

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-313/pyg_lib
      copying pyg_lib/__init__.py -> build/lib.linux-x86_64-cpython-313/pyg_lib
      copying pyg_lib/_triton.py -> build/lib.linux-x86_64-cpython-313/pyg_lib
      copying pyg_lib/home.py -> build/lib.linux-x86_64-cpython-313/pyg_lib
      copying pyg_lib/testing.py -> build/lib.linux-x86_64-cpython-313/pyg_lib
      creating build/lib.linux-x86_64-cpython-313/pyg_lib/ops
      copying pyg_lib/ops/__init__.py -> build/lib.linux-x86_64-cpython-313/pyg_lib/ops
      copying pyg_lib/ops/scatter_reduce.py -> build/lib.linux-x86_64-cpython-313/pyg_lib/ops
      creating build/lib.linux-x86_64-cpython-313/pyg_lib/partition
      copying pyg_lib/partition/__init__.py -> build/lib.linux-x86_64-cpython-313/pyg_lib/partition
      creating build/lib.linux-x86_64-cpython-313/pyg_lib/sampler
      copying pyg_lib/sampler/__init__.py -> build/lib.linux-x86_64-cpython-313/pyg_lib/sampler
      running build_ext
      /tmp/pip-req-build-31el71qi/setup.py:79: UserWarning: Building times of 'pyg-lib' can be heavily improved by installing 'ninja': `pip install ninja`
        warnings.warn("Building times of 'pyg-lib' can be heavily improved"
      error: [Errno 2] No such file or directory: 'cmake'
      [end of output]

Environment

  • pyg-lib version: N/A
  • PyTorch version: 2.6.0 (whatever pip installed)
  • OS: Ubuntu 24.04
  • Python version: 3.13.2
  • CUDA/cuDNN version: 1.2.8
  • How you installed PyTorch and pyg-lib (conda, pip, source): tried pip and source
  • Any other relevant information: everything was tried in a conda environment
@akihironitta
Copy link
Member

Hey hey! Sorry about the incovenience.

Can you try installing cmake first as the error suggests?

      error: [Errno 2] No such file or directory: 'cmake'

FYI, pyg-lib and pyg_lib are equivalent as described in https://packaging.python.org/en/latest/specifications/name-normalization/#name-normalization.

@akihironitta
Copy link
Member

Also, Python 3.13 hasn't been tested on our side. See https://github.com/pyg-team/pyg-lib/blob/master/setup.cfg for supported Python versions.

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

No branches or pull requests

2 participants