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:
parent
4a09655f2f
commit
576b78e8eb
6 changed files with 260 additions and 160 deletions
|
|
@ -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" ]
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue