How to to work with packages added by langserve-cli? Getting module not found error #604
-
I am trying to run langserve package from my VSCode but I am getting the following error here is my file structure and the service.py file where I am trying to import the module I am running 'langchain serve' command while I am on the my-app directory. Also I have created a settings.json file in the .vscode with the following content
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@quartermaine there's a poetry file at the root of the project. It has a section that specifies the dependencies for the project. It'll look something like this [tool.poetry.dependencies]
python = "^3.11"
uvicorn = "^0.23.2"
langserve = {extras = ["server"], version = ">=0.0.30"}
pydantic = "<2"
sqlvector = {path = "packages/sqlvector", develop = true} Use pyproject to install the dependencies so that the package is added to your python path (or add it yourself). Or else use vscode with poetry to have it install the environment properly |
Beta Was this translation helpful? Give feedback.
@quartermaine there's a poetry file at the root of the project.
It has a section that specifies the dependencies for the project. It'll look something like this
Use pyproject to install the dependencies so that the package is added to your python path (or add it yourself).
Or else use vscode with poetry to have it install the environment properly