4

I am trying to build a python program that will display various headlines from certain news sites. I used pip to install the module newspaper, but when I run the program, I get the error:

ImportError: No module named newspaper

Any ideas on how to fix this?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Ajax1234
  • 69,937
  • 8
  • 61
  • 102

2 Answers2

6

Yes, refer to the user guide doc mentioned above. But, NOTE that Python3 is:

pip install newspaper3k

and Python 2.x is:

pip install newspaper

NOTE: you may need to use sudo on some systems to install with pip. Ex:

sudo pip install newspaper
ChuckB
  • 522
  • 4
  • 10
1

You can type at the terminal

pip install newspaper3k

Jacquelyn.Marquardt
  • 602
  • 2
  • 12
  • 30