From 4d95e5b95929915ccebf0501d70dea8190483a40 Mon Sep 17 00:00:00 2001 From: "glolol@overdrivenetworks.com" <> Date: Wed, 11 May 2016 18:17:05 -0700 Subject: 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. --- doc/source/index.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'doc') 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` -- cgit v1.2.1