Skip to content

Commit 61249ed

Browse files
pfmoorepradyunsg
andauthored
Update docs/html/topics/python-option.md
Co-authored-by: Pradyun Gedam <[email protected]>
1 parent b5afdd6 commit 61249ed

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

docs/html/topics/python-option.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,12 @@ environment.
1616
One example of where this might be useful is to manage a virtual environment
1717
that does not have pip installed.
1818

19-
````{tab} Unix/macOS
20-
```{code-block} console
19+
```{pip-cli}
2120
$ python -m venv .venv --without-pip
22-
$ python -m pip --python .venv install SomePackage
21+
$ pip --python .venv install SomePackage
2322
[...]
2423
Successfully installed SomePackage
2524
```
26-
````
27-
````{tab} Windows
28-
```{code-block} console
29-
C:\> py -m venv .venv --without-pip
30-
C:\> py -m pip --python .venv install SomePackage
31-
[...]
32-
Successfully installed SomePackage
33-
```
34-
````
3525

3626
You could also use `--python .venv/bin/python` (or on Windows,
3727
`--python .venv\Scripts\python.exe`) if you wanted to be explicit, but the

0 commit comments

Comments
 (0)