Installation
See how to quickly install Haystack 2.0 with pip or conda.
Warning
Installing
farm-haystack
andhaystack-ai
in the same Python environment (virtualenv, Colab, or system) causes problems.Installing both packages in the same environment can somehow work or fail in obscure ways. We suggest installing only one of these packages per Python environment. Make sure that you remove both packages if they are installed in the same environment, followed by installing only one of them:
pip uninstall -y farm-haystack haystack-ai pip install haystack-ai
If you have any questions, please reach out to us on the GitHub Discussion or Discord.
Package Installation
Use pip to install only the Haystack 2.0 code:
pip install haystack-ai
Alternatively, you can use conda:
conda config --add channels conda-forge/label/haystack-ai_rc
conda install haystack-ai
Contributing to Haystack
If you would like to contribute to the Haystack, check our Contributor Guidelines first.
To be able to make changes to Haystack code, install with the following commands:
# Clone the repo
git clone https://github.com/deepset-ai/haystack.git
# Move into the cloned folder
cd haystack
# Upgrade pip
pip install --upgrade pip
# Install Haystack in editable mode
pip install -e '.[dev]'
Updated 9 months ago