Download scripts/setup_client_env.sh from Dengliming/StreamPIReal6_3w: direct link, hf CLI and curl.
- Browser
- Download file 649 Bytes
-
https://huggingface.co/Dengliming/StreamPIReal6_3w/resolve/main/scripts/setup_client_env.sh
- Command line
-
hf download hf://Dengliming/StreamPIReal6_3w/scripts/setup_client_env.sh
-
curl -L -o setup_client_env.sh https://huggingface.co/Dengliming/StreamPIReal6_3w/resolve/main/scripts/setup_client_env.sh
649 Bytes
| set -Eeuo pipefail | |
| ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| UV_BIN="${UV_BIN:-uv}" | |
| VENV="${OPENPI_CLIENT_VENV:-$ROOT/.venv-client}" | |
| PYTHON_VERSION="${OPENPI_CLIENT_PYTHON_VERSION:-3.11}" | |
| if ! command -v "$UV_BIN" >/dev/null 2>&1; then | |
| echo "ERROR: uv was not found." | |
| echo "Install uv first: https://docs.astral.sh/uv/" | |
| exit 1 | |
| fi | |
| "$UV_BIN" venv \ | |
| --python "$PYTHON_VERSION" \ | |
| "$VENV" | |
| "$UV_BIN" pip install \ | |
| --python "$VENV/bin/python" \ | |
| -e "$ROOT/packages/openpi-client" \ | |
| "numpy>=1.22.4,<2.0.0" | |
| echo "CLIENT_ENV_READY=$VENV" | |
| echo "Client adapter: deployment/piperx_client.py" | |