sagar suri
sagar suri

Reputation: 4731

Unable to install beautifulsoup4 in python on Mac Os

I am trying to install beautifulsoup4 in my mac using the following command:

pip3 install beautifulsoup4

But I am getting this following error:

Could not find a version that satisfies the requirement beautifulsoup4 (from versions: )
No matching distribution found for beautifulsoup4

How can I solve this?

Upvotes: 3

Views: 12422

Answers (4)

Katariina Kari
Katariina Kari

Reputation: 21

I tried upgrading pip3 with what Jatmir was suggesting, but it did not work for me. Finally, I found another way to upgrade it in this post https://github.com/pypa/pip/issues/5255#issuecomment-381702613

curl https://bootstrap.pypa.io/get-pip.py | python3

Upvotes: 1

radzak
radzak

Reputation: 3118

Update pip with pip3 install --upgrade pip. Now you should be able to install beautifulsoup pip3 install beautifulsoup4. If that fails try: python3 -m pip install beautifulsoup4

Upvotes: 8

Suhas
Suhas

Reputation: 57

If you’re using a recent version of Debian or Ubuntu Linux, you can install Beautiful Soup with the system package manager:

$ apt-get install python-bs4 (for Python 2)

$ apt-get install python3-bs4 (for Python 3)

Or

you can install it with easy_install or pip.

$ easy_install beautifulsoup4

$ pip install beautifulsoup4

If you are using Anaconda distribution, you can use this command.

conda install -c anaconda beautiful-soup

Hope this helps.

Upvotes: 0

Hussain Hassam
Hussain Hassam

Reputation: 319

You can download the tarball from here.

extract it, then run:

sudo python setup.py install

if pip fails to work

Upvotes: 0

Related Questions