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

Packages not discoverable by pip #10582

Closed
1 task done
LeonardoEmili opened this issue Oct 12, 2021 · 4 comments
Closed
1 task done

Packages not discoverable by pip #10582

LeonardoEmili opened this issue Oct 12, 2021 · 4 comments
Labels
resolution: duplicate Duplicate of an existing issue/PR

Comments

@LeonardoEmili
Copy link

LeonardoEmili commented Oct 12, 2021

Description

Good evening,
I am facing this issue that prevents me from installing specific package versions even though they are present in the PyPi repository. In my case, running pip3 install torchtext==0.9.1 produces the following error:

ERROR: Could not find a version that satisfies the requirement torchtext==0.9.1 (from versions: 0.1.1, 0.2.0, 0.2.1, 0.2.3, 0.3.1, 0.4.0, 0.5.0, 0.6.0, 0.10.0)
ERROR: No matching distribution found for torchtext==0.9.1

Running pip3 index versions torchtext seems that some versions are missing (even though they should be):

torchtext (0.10.0)
Available versions: 0.10.0, 0.6.0, 0.5.0, 0.4.0, 0.3.1, 0.2.3, 0.2.1, 0.2.0, 0.1.1

More
Creating a conda environment with the same Python (3.9.7) and pip3 (pip 21.2.4 from /opt/homebrew/Caskroom/miniconda/base/envs/prova/lib/python3.9/site-packages/pip (python 3.9)) versions and then running the same command produces the correct version list:

torchtext (0.10.1)
Available versions: 0.10.1, 0.10.0, 0.9.1, 0.9.0, 0.8.1, 0.6.0, 0.5.0, 0.4.0, 0.3.1, 0.2.3, 0.2.1, 0.2.0, 0.1.1

Any clue of what could be the issue with the base pip3 installation?

Expected behavior

The complete list of versions for a given package in the first case.

pip version

pip 21.2.4 from /opt/homebrew/lib/python3.9/site-packages/pip (python 3.9)

Python version

Python 3.9.7

OS

macOS Big Sur 11.6 (Apple Silicon)

How to Reproduce

  1. pip3 index versions torchtext

Output

No response

Code of Conduct

@LeonardoEmili LeonardoEmili added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Oct 12, 2021
@uranusjr
Copy link
Member

torchtext 0.9.1 does not publish either its source code or an M1 binary, so it "exists" but does not "exist" for you.

Merging this into #10052.

@uranusjr uranusjr added resolution: duplicate Duplicate of an existing issue/PR and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Oct 12, 2021
@LeonardoEmili
Copy link
Author

torchtext 0.9.1 does not publish either its source code or an M1 binary, so it "exists" but does not "exist" for you.

Merging this into #10052.

Thanks for your clarification @uranusjr . What about the more section, how is it possible that I get it working when running in a ad-hoc conda environment with the same pip and python versions?

@uranusjr
Copy link
Member

One possibility is the Conda Python is running on Rosetta and is therefore fetching x86_64 images instead. There are a lof of possibilities.

@LeonardoEmili
Copy link
Author

One possibility is the Conda Python is running on Rosetta and is therefore fetching x86_64 images instead. There are a lof of possibilities.

That's true! It seems that with that option conda creates an environment running on Rosetta, enabling pip to find all the package versions. Thanks for your time @uranusjr , have a good day!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: duplicate Duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants