Skip to content

Commit 58a01ff

Browse files
authored
Merge pull request #12043 from Jackenmen/patch-1
Fix direct usage of pip.pyz example
2 parents 98a0593 + 67f79f2 commit 58a01ff

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

docs/html/installation.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,34 @@ $ python pip.pyz --help
6767

6868
If run directly:
6969

70-
```{pip-cli}
71-
$ pip.pyz --help
70+
````{tab} Linux
71+
```console
72+
$ chmod +x ./pip.pyz
73+
$ ./pip.pyz
74+
```
75+
76+
then the currently active Python interpreter will be used.
77+
````
78+
79+
````{tab} MacOS
80+
```console
81+
$ chmod +x ./pip.pyz
82+
$ ./pip.pyz
7283
```
7384
7485
then the currently active Python interpreter will be used.
86+
````
87+
88+
````{tab} Windows
89+
```doscon
90+
C:> .\pip.pyz
91+
```
92+
93+
then the currently active Python interpreter will be used.
94+
95+
You may need to configure your system to recognise the ``.pyz`` extension
96+
before this will work.
97+
````
7598

7699
## Alternative Methods
77100

news/12043.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the direct usage of zipapp showing up as ``python -m pip.pyz`` rather than ``./pip.pyz`` / ``.\pip.pyz``

0 commit comments

Comments
 (0)