Skip to content

Commit 576b78e

Browse files
docs: update pip install instructions to use uv (#8519)
* update code pip install docs * update readme to use -U, remove old dockerfile * [autofix.ci] apply automated fixes * fix uvlock * [autofix.ci] apply automated fixes * uv.lock * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 4a09655 commit 576b78e

6 files changed

Lines changed: 260 additions & 160 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Langflow requires [Python 3.10 to 3.13](https://www.python.org/downloads/release
3434
1. To install Langflow, run:
3535

3636
```shell
37-
uv pip install langflow
37+
uv pip install langflow -U
3838
```
3939

4040
2. To run Langflow, run:

src/backend/Dockerfile

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/backend/base/langflow/components/vectorstores/clickhouse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def build_vector_store(self) -> Clickhouse:
7070
except ImportError as e:
7171
msg = (
7272
"Failed to import Clickhouse dependencies. "
73-
"Install it using `pip install langflow[clickhouse-connect] --pre`"
73+
"Install it using `uv pip install langflow[clickhouse-connect] --pre`"
7474
)
7575
raise ImportError(msg) from e
7676

src/backend/base/langflow/components/vectorstores/couchbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def build_vector_store(self) -> CouchbaseVectorStore:
4242
from couchbase.cluster import Cluster
4343
from couchbase.options import ClusterOptions
4444
except ImportError as e:
45-
msg = "Failed to import Couchbase dependencies. Install it using `pip install langflow[couchbase] --pre`"
45+
msg = "Failed to import Couchbase dependencies. Install it using `uv pip install langflow[couchbase] --pre`"
4646
raise ImportError(msg) from e
4747

4848
try:

src/backend/base/langflow/services/cache/service.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,9 @@ def __init__(self, host="localhost", port=6379, db=0, url=None, expiration_time=
207207
expiration_time (int, optional): Time in seconds after which a
208208
cached item expires. Default is 1 hour.
209209
"""
210-
try:
211-
from redis.asyncio import StrictRedis
212-
except ImportError as exc:
213-
msg = (
214-
"RedisCache requires the redis-py package."
215-
" Please install Langflow with the deploy extra: pip install langflow[deploy]"
216-
)
217-
raise ImportError(msg) from exc
210+
# Redis is a main dependency, no need to import check
211+
from redis.asyncio import StrictRedis
212+
218213
logger.warning(
219214
"RedisCache is an experimental feature and may not work as expected."
220215
" Please report any issues to our GitHub repository."

0 commit comments

Comments
 (0)