mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 06:46:17 +00:00
Use console lexer, not bash, for shell sessions
This commit is contained in:
@@ -25,7 +25,7 @@ Make sure you've got Python & pip
|
|||||||
Before you go any further, make sure you have Python and that it's available
|
Before you go any further, make sure you have Python and that it's available
|
||||||
from your command line. You can check this by simply running:
|
from your command line. You can check this by simply running:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: console
|
||||||
|
|
||||||
$ python --version
|
$ python --version
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ install the latest 3.x version from `python.org`_ or refer to the
|
|||||||
Additionally, you'll need to make sure you have `pip`_ available. You can
|
Additionally, you'll need to make sure you have `pip`_ available. You can
|
||||||
check this by running:
|
check this by running:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: console
|
||||||
|
|
||||||
$ pip --version
|
$ pip --version
|
||||||
|
|
||||||
@@ -116,7 +116,7 @@ Pipenv manages dependencies on a per-project basis. To install packages,
|
|||||||
change into your project's directory (or just an empty directory for this
|
change into your project's directory (or just an empty directory for this
|
||||||
tutorial) and run:
|
tutorial) and run:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: console
|
||||||
|
|
||||||
$ cd myproject
|
$ cd myproject
|
||||||
$ pipenv install requests
|
$ pipenv install requests
|
||||||
@@ -175,7 +175,7 @@ use it:
|
|||||||
|
|
||||||
Then you can run this script using ``pipenv run``:
|
Then you can run this script using ``pipenv run``:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: console
|
||||||
|
|
||||||
$ pipenv run python main.py
|
$ pipenv run python main.py
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user