## TL;DR

If it does import serpapi then serpapi.search with a params dict, you need the newer serpapi package instead. Having both installed, or the wrong one, produces the ImportError.

## Steps

1. Match the package to your import style. If your code does from serpapi import GoogleSearch, you need the google-search-results package. If it does import serpapi then serpapi.search with a params dict, you need the newer serpapi package instead. Having both installed, or the wrong one, produces the ImportError. When in doubt, pip uninstall both and install only the one your code imports from.

## When to use

You are seeing this: Match the package to your import style. Use this skill when you run into "ImportError on GoogleSearch - two incompatible Python libraries, match package to import".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
