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

No matching distribution found for pyg_lib in Python 3.11 + PyTorch 2.2.0 environment on macOS #320

Open
aleaverfay opened this issue Apr 25, 2024 · 5 comments

Comments

@aleaverfay
Copy link

aleaverfay commented Apr 25, 2024

😵 Describe the installation problem

can't find any available versions of pyg_lib if I use python 3.11 + torch2.2.0 (cpu):

I can create an empty conda (mamba) environment using this env.yaml:

name: empty311
channels:
  - conda-forge
dependencies:
  - python=3.11
  - pip

and then when I mamba activate empty311 and try to pip install with

(empty311) $ pip install --find-links=http://data.pyg.org/whl/torch-2.2.0+cpu.html  --trusted-host=data.pyg.org -r min_requirements.in

where min_requirements.in is merely:

torch==2.2.0
pyg_lib

Then I get this error:

% pip install --find-links=http://data.pyg.org/whl/torch-2.2.0+cpu.html  --trusted-host=data.pyg.org -r min_requirements.in
Looking in links: http://data.pyg.org/whl/torch-2.2.0+cpu.html
Collecting torch==2.2.0 (from -r min_requirements.in (line 1))
  Using cached torch-2.2.0-cp311-none-macosx_10_9_x86_64.whl.metadata (25 kB)
ERROR: Could not find a version that satisfies the requirement pyg_lib (from versions: none)
ERROR: No matching distribution found for pyg_lib

If I change to either use python 3.10 or torch 2.1.0, then it works fine.

I am on Mac OS 14.2.1 trying to install any version of pyg-lib of which 0.4.0 is the only option.

Environment

  • pyg-lib version: any, but specifically 0.4.0
  • PyTorch version: 2.2.0
  • OS: Mac OSX 14.2.1
  • Python version: 3.11
  • CUDA/cuDNN version: N/A
  • How you installed PyTorch and pyg-lib (conda, pip, source): pip
  • Any other relevant information:
@simonsanvil
Copy link

Getting the exact same issue. Also in MacOS and python 3.11

@aleaverfay
Copy link
Author

If I look at the torch.2.1.0 directory I see:

...
[pyg_lib-0.3.0+pt21-cp311-cp311-macosx_11_0_universal2.whl]
...
[pyg_lib-0.3.1+pt21-cp311-cp311-macosx_11_0_universal2.whl]
...

listed as options, but not for pyg_lib 0.4.0. The torch 2.2.0 directory doesn't have either pyg_lib 0.3.0 or pyg_lib 0.3.1 and continues to not have a cp311 version for 0.4.0.

@rusty1s
Copy link
Member

rusty1s commented May 2, 2024

We had some problems building pyg-lib for Python version 3.10. This issue should be resolved with PyTorch 2.3 though.

@VladMurgoci
Copy link

I just came here to say that I had to use pyg-lib for a Uni course, and it was horrendous to properly install it. Please do something about it.

@rusty1s
Copy link
Member

rusty1s commented Jun 24, 2024

Can you clarify on your issue?

@akihironitta akihironitta changed the title Cannot install into python 3.11 + torch 2.2.0 environment No matching distribution found for pyg_lib in Python 3.11 + PyTorch 2.2.0 environment on macOS Jul 28, 2024
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

4 participants