setup.sh 822 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. set -e
  3. OPENDEVIN_PYTHON_INTERPRETER=/opendevin/miniforge3/bin/python
  4. # check if OPENDEVIN_PYTHON_INTERPRETER exists and it is usable
  5. if [ -z "$OPENDEVIN_PYTHON_INTERPRETER" ] || [ ! -x "$OPENDEVIN_PYTHON_INTERPRETER" ]; then
  6. echo "OPENDEVIN_PYTHON_INTERPRETER is not usable. Please pull the latest Docker image!"
  7. exit 1
  8. fi
  9. # add agent_skills to PATH
  10. echo 'export PATH=/opendevin/plugins/agent_skills:$PATH' >> ~/.bashrc
  11. # add agent_skills to PYTHONPATH
  12. echo 'export PYTHONPATH=/opendevin/plugins/agent_skills:$PYTHONPATH' >> ~/.bashrc
  13. source ~/.bashrc
  14. $OPENDEVIN_PYTHON_INTERPRETER -m pip install flake8 python-docx PyPDF2 python-pptx pylatexenc openai opencv-python
  15. $OPENDEVIN_PYTHON_INTERPRETER -m pip install diskcache==5.6.3 grep-ast==0.3.2 tree-sitter==0.21.3 tree-sitter-languages==1.10.2