> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

Python SDK enables you to connect to the MindsDB server from Python using HTTP API. Read along to see how to install and test the MindsDB Python SDK.

## Simple Installation

To install the MindsDB Python SDK, run the below command:

```bash theme={null}
pip install mindsdb_sdk
```

Here is the expected output:

<p align="center">
  <img src="https://mintcdn.com/mindsdb/PwWStDnrPJllqmj0/assets/pythonsdk_install_output.png?fit=max&auto=format&n=PwWStDnrPJllqmj0&q=85&s=63087b949f5423fd5f717eca780344b4" width="926" height="1226" data-path="assets/pythonsdk_install_output.png" />
</p>

## Advanced Installation

Instead of using the `pip install mindsdb_sdk` command, you can install it by cloning the [Python SDK repository](https://github.com/mindsdb/mindsdb_python_sdk). Then you should create a virtual environment, install all dependencies from the `requirements.txt` file, and run tests as instructed below.

To test all the components, go to the project directory (`mindsdb_sdk`) and run the below command:

```bash theme={null}
env PYTHONPATH=./ pytest
```

To generate the API documentation, run the below commands:

```bash theme={null}
pip install sphinx
cd docs
make html
```

The documentation is generated in the `docs/build/html` folder.
