How to install BeautifulSoup4 for python 3 in Red Hat Linux 4.8.5-11 AWS?

891 views
Skip to first unread message

qubito

unread,
Dec 17, 2017, 11:12:13 AM12/17/17
to beautifulsoup
 $ pip install beautifulsoup4
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python2.7/site-packages
 $ pip3 install beautifulsoup4
bash
: pip3: command not found
 $ python3
Python 3.6.2 (default, Aug 25 2017, 21:26:12)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from bs4 import BeautifulSoup
Traceback (most recent call last):
 
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'bs4'

Thanks all.

Jim Tittsler

unread,
Dec 18, 2017, 1:15:19 AM12/18/17
to beautifulsoup
On Mon, Dec 18, 2017 at 1:03 AM, qubito <quan.min...@gmail.com> wrote:
> $ pip install beautifulsoup4
> Requirement already satisfied: beautifulsoup4 in
> /usr/local/lib/python2.7/site-packages
> $ pip3 install beautifulsoup4
> bash: pip3: command not found

You appear to be missing pip3. I am not a Red Hat user, but look for
a package named python36u-pip (or similar).

Or you could use python2.7 since you appear to have successfully
installed BeautifulSoup there.

Marcelo Huerta

unread,
Feb 6, 2018, 11:39:01 AM2/6/18
to beautifulsoup
El domingo, 17 de diciembre de 2017, 13:12:13 (UTC-3), qubito escribió:
 $ pip install beautifulsoup4
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python2.7/site-packages
 $ pip3 install beautifulsoup4
bash
: pip3: command not found


You can replace that with

$ python3 -m pip install bs4 


Reply all
Reply to author
Forward
0 new messages