mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-19 07:59:34 +00:00
pip to uv
This commit is contained in:
parent
bc88d882d7
commit
fe98375e8e
3 changed files with 5 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ git clone -b "$BRANCH" "https://github.com/frdel/agent-zero" "/git/agent-zero" |
|
|||
# # Install some packages in specific variants
|
||||
# pip install torch --index-url https://download.pytorch.org/whl/cpu
|
||||
|
||||
pip install -v mcp==1.3.0 || {
|
||||
uv pip install -v mcp==1.3.0 || {
|
||||
echo "ERROR: Failed during separate attempt to install mcp==1.3.0. Will proceed to full requirements.txt install anyway."
|
||||
}
|
||||
python -c "import mcp; from mcp import ClientSession; print(f'DEBUG: mcp and mcp.ClientSession imported successfully after separate install. mcp path: {mcp.__file__}')" || {
|
||||
|
|
@ -32,7 +32,7 @@ python -c "import mcp; from mcp import ClientSession; print(f'DEBUG: mcp and mcp
|
|||
}
|
||||
|
||||
# Install remaining A0 python packages
|
||||
pip install -r /git/agent-zero/requirements.txt
|
||||
uv pip install -r /git/agent-zero/requirements.txt
|
||||
|
||||
python -c "import mcp; from mcp import ClientSession; print(f'DEBUG: mcp and mcp.ClientSession imported successfully after requirements.txt. mcp path: {mcp.__file__}')" || {
|
||||
echo "CRITICAL ERROR: mcp package or mcp.ClientSession not found or failed to import after requirements.txt processing."
|
||||
|
|
|
|||
|
|
@ -10,4 +10,5 @@ bash /ins/install_A0.sh "$@"
|
|||
|
||||
# remove python packages cache
|
||||
. "/ins/setup_venv.sh" "$@"
|
||||
pip cache purge
|
||||
pip cache purge
|
||||
uv cache prune
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
. "/ins/setup_venv.sh" "$@"
|
||||
|
||||
# install playwright if not installed (should be from requirements.txt)
|
||||
pip install playwright
|
||||
uv pip install playwright
|
||||
|
||||
# install chromium with dependencies
|
||||
# for kali-based
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue