[Answered ]-How do I install Haystack without CUDA?

1👍

The installation of cuda packages is caused by the torch dependency installed as an extra of the transformers dependency. You can find it in Haystack’s pyproject.toml file.

What you can do to prevent that is to install torch with the following command. There is no CPU version of PyTorch on PyPI (tracked by this issue on GitHub) which is why we need to provide an index-url in the command:

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu

Leave a comment