From 9164a1b1e91084cf8873fd07da12fbd39e4ca29d Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 13 Apr 2017 10:53:18 -0400 Subject: [PATCH] working with python 3 --- docs/starting/install3/linux.rst | 18 ++++++++++++++++++ docs/starting/install3/osx.rst | 2 +- docs/starting/install3/win.rst | 18 ++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/docs/starting/install3/linux.rst b/docs/starting/install3/linux.rst index 9e33ff3..eee5620 100644 --- a/docs/starting/install3/linux.rst +++ b/docs/starting/install3/linux.rst @@ -22,6 +22,23 @@ If you're using another version of Ubuntu (e.g. the latest LTS release), we reco $ sudo apt-get update $ sudo apt-get install python3.6 +Working with Python 3 +--------------------- + +At this point, you have the system Python 2.7 available, potentially the +:ref:`Homebrew version of Python 2 ` installed, and the Homebrew +version of Python 3 as well. + +.. code-block:: console + + $ python + +will launch the Python 2 interpreter. + +.. code-block:: console + + $ python3 + Setuptools & Pip ---------------- @@ -59,6 +76,7 @@ To start using this and see more information: :ref:`Virtual Environments ` to make it easier to manage your virtual environments. + -------------------------------- This page is a remixed version of `another guide `_, diff --git a/docs/starting/install3/osx.rst b/docs/starting/install3/osx.rst index de0d4b3..8a82822 100644 --- a/docs/starting/install3/osx.rst +++ b/docs/starting/install3/osx.rst @@ -90,7 +90,7 @@ will launch the Python 2 interpreter. $ python3 -will launch the Python 3 interpreter +will launch the Python 3 interpreter. ``pip3`` and ``pip`` will both be available. If the Homebrew version of Python 2 is not installed, they will be the same. If the Homebrew version of Python 2 diff --git a/docs/starting/install3/win.rst b/docs/starting/install3/win.rst index d1d00a9..c940b9b 100644 --- a/docs/starting/install3/win.rst +++ b/docs/starting/install3/win.rst @@ -41,6 +41,24 @@ described in the next section before you start building Python applications for real-world use. In particular, you should always install Setuptools, as it makes it much easier for you to use other third-party Python libraries. +Working with Python 3 +--------------------- + +At this point, you have the system Python 2.7 available, potentially the +:ref:`Homebrew version of Python 2 ` installed, and the Homebrew +version of Python 3 as well. + +.. code-block:: console + + $ python + +will launch the Python 2 interpreter. + +.. code-block:: console + + $ python3 + + Setuptools + Pip ----------------