[GH-ISSUE #1333] ImportError : cannot import name 'llama2' from 'langchain #26455

Closed
opened 2026-04-22 02:45:05 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @illiyaz on GitHub (Nov 30, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1333

I have been trying to run some sample code with Ollama on mac but was not able to run this successful

I was getting an error in this line 'from langchain.llms import Ollama'
The version of langchain was 0.0.236

Originally created by @illiyaz on GitHub (Nov 30, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1333 I have been trying to run some sample code with Ollama on mac but was not able to run this successful I was getting an error in this line 'from langchain.llms import Ollama' The version of langchain was 0.0.236
Author
Owner

@illiyaz commented on GitHub (Nov 30, 2023):

I was able to solve this by updating the langchain version to 0.0.343 which is the latest version.

<!-- gh-comment-id:1834020673 --> @illiyaz commented on GitHub (Nov 30, 2023): I was able to solve this by updating the langchain version to 0.0.343 which is the latest version.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#26455