Skip to content

ImportError: Could not import faiss python package. Please install it with pip install faiss-gpu (for CUDA supported GPU) or pip install faiss-cpu (depending on Python version). #161

@CodePro2113

Description

@CodePro2113

Hi,

I am a newbie and am trying to upload my app on streamlit cloud. My app is working fine on my local computer, but when I upload to Streamlit cloud, I get the following error while importing FAISS module.

image

In Github, I have included the below packages in requirements.txt:

langchain==0.0.256
openai==0.27.8
openapi-schema-pydantic==1.2.4
PyPDF2==3.0.1
tiktoken==0.4.0
FAISS-cpu==1.7.4
streamlit==1.25.0

Can someone please help as to how I can get this to work on streamlit colud.

Thanks in advance !!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions