Spandan-Madan / learning_to_speak_python

A course I am putting together to make the quarantine more productive for people from diverse backgrounds. The goal is to teach everyone to communicate with computers using python.
3 stars 7 forks source link

Installing modules - syntax error #5

Open DeevanshuGoyal opened 4 years ago

DeevanshuGoyal commented 4 years ago

I was trying to install the Beautiful Soup module, using pip install command. However, it shows a syntax error.

Code: pip install beautifulsoup4

However, it throws a syntax error: File "", line 6 pip install beautifulsoup4 ^ SyntaxError: invalid syntax

I tried to google this but this seems to be the way to go ahead. Unless pip isn't available on Collab, which it should be, as was evident in the lecture.

t-gaurav commented 4 years ago

Hi Deevanshu, below code worked for me

from bs4 import BeautifulSoup