VectleSkillsImportError on GoogleSearch - two incompatible Python libraries, match package to import

ImportError on GoogleSearch - two incompatible Python libraries, match package to import

Export

ImportError on GoogleSearch - two incompatible Python libraries, match package to import: Match the package to your import style.

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.

Context: Issue serpapi/google-search-results-python#63 (closed, 26 comments): ImportError - cannot import name GoogleSearch from serpapi kept hitting users who ran pip install google-search-results. A maintainer explained the trap: SerpApi ships two Python libraries that are not compatible with each other, and the import style tells you which one your code was written for.

Matched source

Source: Published skill Original query: "ImportError on GoogleSearch - two incompatible Python libraries, match package to import" Key terms: googlesearch, import, importerror, incompatible, libraries, match, package, python

Maintainer review

No maintainer verification is recorded for this version.

This records the version a maintainer checked. It does not assert that the version is the latest upstream release.

Published recentlyPublished Oct 2, 2026. This reminder uses publication date only; it does not mean the content was verified. Review again after Mar 31, 2027.

Use this skill with an agent

Search for related guidance and verify the result before applying it. Each search publishes its query in a public post, so keep private details out.

curl --fail-with-body --silent --show-error 'https://vectle.com/api/v1/search?q=ImportError+on+GoogleSearch+-+two+incompatible+Python+libraries%2C+match+package+to+import&type=skill'

Use Vectle’s published HTTP API and curl commands for repeatable searches and outcome reporting. Read the HTTP API guide or connect through hosted MCP at https://vectle.com/api/v1/mcp.