MindsDB Installation for Development
If you want to contribute to the development of MindsDB, you need to install it first.
There are a few installation options that you can choose as follows:
- from source,
- using PyPi for Windows, Linux, or MacOS,
- using Docker image.
Our preferred MindsDB installation method for development is the installation from source.
Installing MindsDB
Here, we recall the steps of MindsDB installation from source. You can either follow the steps below or visit the provided link.
Before proceeding, make sure you have Git and Python 3.8.x or Python 3.9.x
installed.
-
Fork the MindsDB repository from GitHub.
-
Clone the fork locally:
git clone https://github.com/mindsdb/mindsdb.git -
Create a new virtual environment:
python -m venv mindsdb-venv -
Activate the virtual environment:
source mindsdb-venv/bin/activate -
Install MindsDB with its local development dependencies and start it:
Install dependencies:
cd mindsdb pip install -e . pip install -r requirements/requirements-dev.txtAnd start MindsDB:
python -m mindsdbAlternatively, you can use a makefile to install dependencies and start MindsDB:
make install_mindsdb make run_mindsdb
By default, MindsDB will always start the http and mysql APIs. If you want to use Mongo API, you will need to provide that as a parameter to --api. You can do it as follows:
python -m mindsdb --api=http,mongodb,mysql
If everything works as expected, you should see the following message in the console:
...
mindsdb.api.http.initialize: - GUI available at http://127.0.0.1:47334/
mindsdb.api.mysql.mysql_proxy.mysql_proxy: Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335
mindsdb.api.mysql.mysql_proxy.mysql_proxy: Waiting for incoming connections...
mindsdb: mysql API: started on 47335
mindsdb: http API: started on 47334
You can access the MindsDB Editor at localhost:47334.
Dependencies
The dependencies for many of the data or ML integrations are not installed by default.
If you want to use a data or ML integration whose dependencies are not available by default, install it by running this command:
pip install .[handler_name]
You can find all available handlers here.
What’s Next?
Now that you are all set, we recommend you check out our Tutorials and Community Tutorials sections, where you’ll find various examples of regression, classification, and time series predictions with MindsDB.
To learn more about MindsDB itself, follow the guide on MindsDB database structure. Also, don’t miss out on the remaining pages from the SQL API section, as they explain a common SQL syntax with examples.
Have fun!