File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
Filter options
Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
Original file line number Diff line number Diff line change @@ -109,7 +109,10 @@ Command line examples:
109
109
$ run command --help
110
110
$ ls ..
111
111
112
- Be sure to include the ``$ `` prefix before each line.
112
+ Be sure to include the ``$ `` prefix before each line for Unix console examples.
113
+
114
+ For Windows console examples, use ``doscon `` or ``powershell `` instead of
115
+ ``console ``, and omit the ``$ `` prefix.
113
116
114
117
Python interpreter examples:
115
118
Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ tedious, so add the directories for your default Python version to the :envvar:`
32
32
Assuming that your Python installation is in :file: `C:\\ Python27\\ `, add this to your
33
33
:envvar: `PATH `:
34
34
35
- .. code-block :: console
35
+ .. code-block :: doscon
36
36
37
37
C:\Python27\;C:\Python27\Scripts\
38
38
39
39
You can do this easily by running the following in ``powershell ``:
40
40
41
- .. code-block :: console
41
+ .. code-block :: powershell
42
42
43
43
[Environment ]::SetEnvironmentVariable(" Path" , " $env: Path ;C:\Python27\;C:\Python27\Scripts\" , " User" )
44
44
@@ -68,9 +68,9 @@ pip by default.
68
68
69
69
To see if pip is installed, open a command prompt and run
70
70
71
- .. code-block :: console
71
+ .. code-block :: doscon
72
72
73
- $ command -v pip
73
+ command -v pip
74
74
75
75
To install pip, `follow the official pip installation guide <https://pip.pypa.io/en/latest/installing/ >`_ - this will automatically install the latest version of setuptools.
76
76
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ It's a community system packager manager for Windows 7+. (It's very much like Ho
12
12
13
13
Once done, installing Python 3 is very simple, because Chocolatey pushes Python 3 as the default.
14
14
15
- .. code-block :: console
15
+ .. code-block :: doscon
16
16
17
17
choco install python
18
18
@@ -29,7 +29,9 @@ which let you download, install and uninstall any compliant Python software
29
29
product with a single command. It also enables you to add this network installation
30
30
capability to your own Python software with very little work.
31
31
32
- All supported versions of Python 3 include pip, so just make sure it's up to date::
32
+ All supported versions of Python 3 include pip, so just make sure it's up to date:
33
+
34
+ .. code-block :: doscon
33
35
34
36
python -m pip install -U pip
35
37
You can’t perform that action at this time.
0 commit comments