AllAboutAI-YT / easy-local-rag

SuperEasy 100% Local RAG with Ollama + Email RAG
MIT License
675 stars 177 forks source link

cannot import ollama module #11

Open abhinand888 opened 4 months ago

abhinand888 commented 4 months ago

pip install -r requirements.txt Collecting openai Using cached openai-0.10.5.tar.gz (157 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: torch in c:\users\abhinand\easy-local-rag\my_venv\lib\site-packages (from -r requirements.txt (line 2)) (1.10.2) Requirement already satisfied: PyPDF2 in c:\users\abhinand\easy-local-rag\my_venv\lib\site-packages (from -r requirements.txt (line 3)) (3.0.1) ERROR: Could not find a version that satisfies the requirement ollama (from versions: none) ERROR: No matching distribution found for ollama

(my_venv) C:\Users\abhinand\easy-local-rag>python localrag.py Traceback (most recent call last): File "localrag.py", line 2, in import ollama ModuleNotFoundError: No module named 'ollama'.

I have downloaded ollama windows in my system ,but cannnot import the ollama module.can you please try and figure it out whats wrong.

AllAboutAI-YT commented 4 months ago

Will take a look :)

AllAboutAI-YT commented 4 months ago

@abhinand888 You can the version here maybe https://pypi.org/project/ollama/

David-Hoa2023 commented 4 months ago

(my_venv) C:\Users\abhinand\easy-local-rag>python localrag.py Traceback (most recent call last): File "localrag.py", line 2, in import ollama ModuleNotFoundError: No module named 'ollama'.

See how I fixed it

(agent_RAG) PS D:\0_AI_Marketing_Institute\easy-local-rag> C:\Users\Administrator.conda\envs\agent_RAG\python.exe localrag.py Traceback (most recent call last): File "D:\0_AI_Marketing_Institute\easy-local-rag\localrag.py", line 2, in import ollama ModuleNotFoundError: No module named 'ollama' (agent_RAG) PS D:\0_AI_Marketing_Institute\easy-local-rag> C:\Users\Administrator.conda\envs\agent_RAG\python.exe pip install ollama C:\Users\Administrator.conda\envs\agent_RAG\python.exe: can't open file 'D:\0_AI_Marketing_Institute\easy-local-rag\pip': [Errno 2] No such file or directory (agent_RAG) PS D:\0_AI_Marketing_Institute\easy-local-rag> C:\Users\Administrator.conda\envs\agent_RAG\python.exe -m pip install ollama Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com Collecting ollama

LaksLaksman commented 1 month ago

is it solved?

jaykeerti commented 4 days ago

Upgrade the python version to > 3.8