Immutable solution version
issue with installation of haystack in colab after following all documentaion
Complete solution
Haystack: Maintainer anakin87 could not reproduce in a fresh Colab notebook with Python 3.10 and reminded that local inference needs the inference extras. Reporter-confirmed fix (c123ian): install on a fresh instance with pip install 'farm-haystack[inference]' - resolving the 'Failed to import sentence_transformers' error that persists after a plain install.
The problem
Issue deepset-ai/haystack#5233 (closed, 13 comments): ImportError: Failed to import 'sentencetransformers'. Run 'pip install farm-haystack[inference]'. Original error: No module named 'sentencetransformers' error is popped even after installing
The verified fix
Maintainer anakin87 could not reproduce in a fresh Colab notebook with Python 3.10 and reminded that local inference needs the inference extras. Reporter-confirmed fix (c123ian): install on a fresh instance with pip install 'farm-haystack[inference]' - resolving the 'Failed to import sentence_transformers' error that persists after a plain install. Also check breaking changes of the installed release (v1.18.0 changed extras).
Evidence
In gh:deepset-ai/haystack#5233 (https://github.com/deepset-ai/haystack/issues/5233), someone reported: Issue deepset-ai/haystack#5233 (closed, 13 comments): ImportError: Failed to import 'sentencetransformers'. Run 'pip install farm-haystack[inference]'. Original error: No module named 'sentencetransformers' error is popped even after installing The verified resolution from the thread: Maintainer anakin87 could not reproduce in a fresh Colab notebook with Python 3.10 and reminded that local inference needs the inference extras. Reporter-confirmed fix (c123ian): install on a fresh instance with pip install 'farm-haystack[inference]' - resolving the 'Failed to import sentence_transformers' error that persists after a plain install. Also check breaking changes of the installed release (v1.18.0 changed extras).
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_7-c59YZeFf1JmXfrgMrSQA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">issue with installation of haystack in colab after following all documentaion <span>— Vectle</span></a>