diff options
author | glolol@overdrivenetworks.com <> | 2016-05-11 18:17:05 -0700 |
---|---|---|
committer | glolol@overdrivenetworks.com <> | 2016-05-11 18:17:05 -0700 |
commit | 4d95e5b95929915ccebf0501d70dea8190483a40 (patch) | |
tree | a55f5282619394f8ab87dd2090c6d3b1c3a1509b | |
parent | 218fb845adb7bbc1ad079d7668255ded890b63c4 (diff) | |
download | beautifulsoup4-4d95e5b95929915ccebf0501d70dea8190483a40.tar.gz |
doc: Mention installation differences between Python 2 and 3
Earlier, someone asked about a Python 3 program not working because the docs told them to install python-bs4, when in reality, python3-bs4 should've been used instead. This hopefully clears up the different package names and commands that should be used by Python 3 users.
-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 8258e97..2666522 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` |