mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Merge pull request #957 from apjanke/doscon-styling
Format Windows console examples with `doscon`or `powershell`
This commit is contained in:
@@ -32,13 +32,13 @@ tedious, so add the directories for your default Python version to the :envvar:`
|
||||
Assuming that your Python installation is in :file:`C:\\Python27\\`, add this to your
|
||||
:envvar:`PATH`:
|
||||
|
||||
.. code-block:: console
|
||||
.. code-block:: doscon
|
||||
|
||||
C:\Python27\;C:\Python27\Scripts\
|
||||
|
||||
You can do this easily by running the following in ``powershell``:
|
||||
|
||||
.. code-block:: console
|
||||
.. code-block:: powershell
|
||||
|
||||
[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27\;C:\Python27\Scripts\", "User")
|
||||
|
||||
@@ -68,9 +68,9 @@ pip by default.
|
||||
|
||||
To see if pip is installed, open a command prompt and run
|
||||
|
||||
.. code-block:: console
|
||||
.. code-block:: doscon
|
||||
|
||||
$ command -v pip
|
||||
command -v pip
|
||||
|
||||
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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user