diff options
author | Leonard Richardson <leonardr@segfault.org> | 2016-07-26 21:31:50 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2016-07-26 21:31:50 -0400 |
commit | 3b39288fe9ec805bfe5286214aaf46c1307d2197 (patch) | |
tree | fb96baad1ee094789e38cf7c24f066c28be32929 /doc/source | |
parent | 1a0c82f030006f8a3e195e4fcd52c6751f5ae4db (diff) | |
parent | e671f1d216d1ca27a20e345f1203718c502f9cfd (diff) |
Clarify installation differences between Python 2 and Python 3. Contributed by James Lu.
Diffstat (limited to 'doc/source')
-rw-r--r-- | doc/source/index.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst index a6b2076..5572eff 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -166,12 +166,16 @@ Installing Beautiful Soup If you're using a recent version of Debian or Ubuntu Linux, you can install Beautiful Soup with the system package manager: -:kbd:`$ apt-get install python-bs4` +:kbd:`$ apt-get install python-bs4` (for Python 2) + +:kbd:`$ apt-get install python3-bs4` (for Python 3) Beautiful Soup 4 is published through PyPi, so if you can't install it with the system packager, you can install it with ``easy_install`` or ``pip``. The package name is ``beautifulsoup4``, and the same package -works on Python 2 and Python 3. +works on Python 2 and Python 3. Make sure you use the right version of +``pip`` or ``easy_install`` for your Python version (these may be named +``pip3`` and ``easy_install3`` respectively if you're using Python 3). :kbd:`$ easy_install beautifulsoup4` |