No module named 'newspaper'

629 Views Asked by At

I have installed "newspaper3k" both on the command line and onside the jupyter notebook. Both clearly say the package is installed. But when I sue import, it says the No Module named "newspaper".

It works on colab but not my local kernel (win 10, pyhton3).

1

There are 1 best solutions below

0
On

Which python version you used while installing module and while running the code, it should be same.

  1. Check if it is modules is present under Python{version}/lib. If not
  2. try installing with the same python you are using try again.
  3. If not there may be environment variable issue, set the same python version in ev