Discrepancy in Installation Python 3 on Windows

Offen
#846 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Dokumentation
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
documentation

Rechercherichtung

Beginne mit dem Abschnitt “Working with Python 3” des Leitfadens und prüfe die verlinkte Dokumentation zum Python launcher für Windows. Überprüfe die anderen Tutorial-Verweise auf Python, pip, pip3 und pipenv und aktualisiere anschließend die Windows-spezifischen Hinweise, damit die Befehle und Anweisungen zur Versionsauswahl durchgängig konsistent sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

The Working with Python 3 section mentions you should use python3 to launch the Python 3 interpreter, which does not actually work. The Windows distribution provides only python.exe for all versions of Python, and to launch the Python 3 interpreter you need python. This also creates problems if you install both Python 2 and 3—the executables override each other, and only one of the exes is visible at a time through %Path% (what actually is visible depends on the order of the search paths).

AFAIK the official way to deal with this problem is through the py launcher, but that only solves the python.exe problem, not other scripts installed later during the setup (e.g. pip vs pip3), and other global tools (e.g. pipenv). It will affect other parts of the tutorial as well.

Vorherrschende Sprache
Batchfile
Sterne
29.8k
Forks
5.9k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus realpython/python-guide

Alle Issues in realpython/python-guide

Neue Issues direkt in Ihr Postfach

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