10000 No module named 'mcp.client'; 'mcp' is not a package · Issue #990 · modelcontextprotocol/python-sdk · GitHub
[go: up one dir, main page]

Skip to content
No module named 'mcp.client'; 'mcp' is not a package #990
Closed
@xiezongming

Description

@xiezongming

Initial Checks

Description

An error occurred when using UV to install MCP and import mcp.client.

Example Code

[project]
name = "qwen-agent-test2"
version = "0.1.0"
description = "Add your description here"
requires-python = ">=3.13"
dependencies = [
    "json5>=0.12.0",
#    "qwen-agent[rag,code_interpreter,gui,mcp]",
    "mcp"
]

[[tool.uv.index]]
url = "https://mirrors.cloud.tencent.com/pypi/simple/"
default = true


import mcp.client.stdio  error :
ModuleNotFoundError: No module named 'mcp.client'; 'mcp' is not a package

Python & MCP Python SDK

python 3.13
mcp sdk 1.9.4
4AC4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0