Ognjen Ognjanovic
Ognjen Ognjanovic

Reputation: 79

ModuleNotFoundError: No module named 'googlesearch'

from googlesearch import search


query = "see"

links = []
for j in search(query, tld="co.in", num=10, stop=10, pause=2):
    links.append(j)
print(links)

I've done absolutely everything I can in my power to make it work. I did all of the things mentioned below:

  1. pip install google
  2. pip install google-search
  3. pip install google-cloud

Upvotes: 6

Views: 15268

Answers (3)

Yves Laporte
Yves Laporte

Reputation: 1

Reading better pypi.org, I precised still my installation like this, : python3 -m pip install googlesearch-python this in a venv like I use to...

Upvotes: 0

Ayaan
Ayaan

Reputation: 167

Did you do this?

pip install googlesearch-python

Because that is the command you have to run to install googlesearch.

Upvotes: 7

Ognjen Ognjanovic
Ognjen Ognjanovic

Reputation: 79

It was a problem with Conda, I used venv and it worked perfectly fine.

Upvotes: 0

Related Questions