mirror of
https://github.com/langgenius/dify-agentbox.git
synced 2026-07-19 14:13:38 -04:00
26 lines
586 B
Bash
26 lines
586 B
Bash
#!/bin/bash
|
|
set -ex
|
|
|
|
echo "[agentbox] Step 3: install Python env and packages"
|
|
|
|
# Create base environment with Python
|
|
/opt/conda/bin/conda install -y -n base -c conda-forge \
|
|
python={{ languages.python.version }} \
|
|
pip
|
|
|
|
# Install Python packages
|
|
/opt/conda/bin/pip install --no-cache-dir \
|
|
{% for pkg in python_packages -%}
|
|
{% if pkg.version == "latest" -%}
|
|
{{ pkg.name }} \
|
|
{% else -%}
|
|
"{{ pkg.name }}{{ pkg.version }}" \
|
|
{% endif -%}
|
|
{% endfor %}
|
|
|
|
# Cleanup
|
|
/opt/conda/bin/conda clean --all -y
|
|
/opt/conda/bin/pip cache purge || true
|
|
|
|
echo "[agentbox] Step 3 complete"
|