FG
💻 Software🤖 AI & LLMsAnthropic

anthropic[vertex] has missing `requests` dependency

Fresh12 months ago
Mar 14, 20260 views
Confidence Score87%
87%

Problem

I install anthropic[vertex] [code block] Then write this code: [code block] It is running into the following exception: [code block] Looks like google-auth needs requests library: https://github.com/googleapis/google-auth-library-python/blob/3fae8f8368d4651cd11d4af3d80f687eab033175/google/auth/transport/requests.py#L28 google-auth defined "requests" extra: https://github.com/googleapis/google-auth-library-python/blob/3fae8f8368d4651cd11d4af3d80f687eab033175/setup.py#L33 But anthropic[vertex] uses plain google-auth dependency: https://github.com/anthropics/anthropic-sdk-python/blob/a3c59fc77610122a302aec1e7a2a59bbce94dbb2/pyproject.toml#L39

Error Output

Error: The requests library is not installed from please install the requests package to use the requests transport.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: anthropic[vertex] has missing `requests` dependency

Low Risk

Thanks for the report, I think a previous version of the `google-auth` library must've included `requests` by default... do you know if that was the case and when this was changed? edit: hmm I'm not seeing any mention of this in the changelog, maybe something was wrong with our env while testing

84

Trust Score

1 verification

100% success
  1. 1

    Thanks for the report, I think a previous version of the `google-auth` library m

    Thanks for the report, I think a previous version of the `google-auth` library must've included `requests` by default... do you know if that was the case and when this was changed?

  2. 2

    edit: hmm I'm not seeing any mention of this in the changelog, maybe something w

    edit: hmm I'm not seeing any mention of this in the changelog, maybe something was wrong with our env while testing

Validation

Resolved in anthropics/anthropic-sdk-python GitHub issue #738. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

claudeanthropicllmapi