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 | 231c396236c3838c8e3c7ac40d6fba6f28fc00e5 (patch) | |
tree | 155b9c4ae980f2ac50e3b72b55d253ade153b027 /doc | |
parent | 50882562767b2445d504dc55b627c51c60364ecb (diff) | |
parent | 4d95e5b95929915ccebf0501d70dea8190483a40 (diff) | |
download | beautifulsoup4-231c396236c3838c8e3c7ac40d6fba6f28fc00e5.tar.gz |
Clarify installation differences between Python 2 and Python 3. Contributed by James Lu.
Diffstat (limited to 'doc')
-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` |