working with python 3

This commit is contained in:
2017-04-13 10:53:18 -04:00
parent 7096c95132
commit 9164a1b1e9
3 changed files with 37 additions and 1 deletions
+18
View File
@@ -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 <install-osx>` 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 <virtua
You can also use :ref:`virtualenvwrapper <virtualenvwrapper-ref>` to make it easier to
manage your virtual environments.
--------------------------------
This page is a remixed version of `another guide <http://www.stuartellis.eu/articles/python-development-windows/>`_,
+1 -1
View File
@@ -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
+18
View File
@@ -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 <install-osx>` 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
----------------