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>
This commit is contained in:
Jordan Frazier 2025-06-23 07:56:56 -07:00 committed by GitHub
commit 576b78e8eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 260 additions and 160 deletions

View file

@ -1,14 +0,0 @@
FROM langflowai/backend_build as backend_build
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y git libpq-dev gcc
COPY --from=backend_build /app/dist/*.whl /app/
RUN pip install langflow-*.whl
RUN rm *.whl
EXPOSE 80
CMD [ "uvicorn", "--host", "0.0.0.0", "--port", "7860", "--factory", "langflow.main:create_app" ]

View file

@ -70,7 +70,7 @@ class ClickhouseVectorStoreComponent(LCVectorStoreComponent):
except ImportError as e:
msg = (
"Failed to import Clickhouse dependencies. "
"Install it using `pip install langflow[clickhouse-connect] --pre`"
"Install it using `uv pip install langflow[clickhouse-connect] --pre`"
)
raise ImportError(msg) from e

View file

@ -42,7 +42,7 @@ class CouchbaseVectorStoreComponent(LCVectorStoreComponent):
from couchbase.cluster import Cluster
from couchbase.options import ClusterOptions
except ImportError as e:
msg = "Failed to import Couchbase dependencies. Install it using `pip install langflow[couchbase] --pre`"
msg = "Failed to import Couchbase dependencies. Install it using `uv pip install langflow[couchbase] --pre`"
raise ImportError(msg) from e
try:

View file

@ -207,14 +207,9 @@ class RedisCache(ExternalAsyncBaseCacheService, Generic[LockType]):
expiration_time (int, optional): Time in seconds after which a
cached item expires. Default is 1 hour.
"""
try:
from redis.asyncio import StrictRedis
except ImportError as exc:
msg = (
"RedisCache requires the redis-py package."
" Please install Langflow with the deploy extra: pip install langflow[deploy]"
)
raise ImportError(msg) from exc
# Redis is a main dependency, no need to import check
from redis.asyncio import StrictRedis
logger.warning(
"RedisCache is an experimental feature and may not work as expected."
" Please report any issues to our GitHub repository."