asdf-community / asdf-community/asdf-python

Unable to use pip with Python 3.10.2

Offen
#127 3 Kommentare 10 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Shell
Sterne
729
Forks
65
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

After upgrading to python `latest` (3.10.2), I cannot use `pip`. Instead, I receive the following error:

```sh
% pip --version
No preset version installed for command pip
Please install a version by running one of the following:

asdf install python 3.10.2

or add one of the following versions in your config file at /Users//.tool-versions
python 3.10.0
python 3.10.1
python 3.7.12
python 3.9.9
```

Python 3.10.2 is the current version set globally, and I confirmed `pip` is set up with this installation:

```sh
% asdf current python
python 3.10.2 /Users//.tool-versions

% python -m ensurepip
Looking in links: /var/folders/qn/yclk87390d32w5yqd9_wn9v00000gn/T/tmpergu57gj
Requirement already satisfied: setuptools in ./.asdf/installs/python/3.10.2/lib/python3.10/site-packages (58.1.0)
Requirement already satisfied: pip in ./.local/lib/python3.10/site-packages (21.3.1)
```

I attempted running `asdf reshim python`, and I also removed `$HOME/.asdf/shims` and ran `asdf reshim`, but this hasn't resolved the issue. Additionally, I have reproduced the problem across two machines, one Intel Mac running macOS Big Sur 11.6.2, and an Apple Silicon-based MacBook Pro running macOS Monterey 12.1. Reverting to 3.10.1 with `asdf global python 3.10.1` allows pip to work as expected. Any thoughts on this problem?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne damit, den Fehler mit Python 3.10.2 und den gezeigten Befehlen zu reproduzieren: `pip --version`, `asdf current python` und `python -m ensurepip`. Vergleiche das funktionierende 3.10.1-Setup mit 3.10.2, einschließlich `.tool-versions` und den Ergebnissen von `asdf reshim python`; abgeschlossen ist die Aufgabe, wenn `pip --version` funktioniert, während 3.10.2 ausgewählt ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
tooling
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.