加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
run.sh 737 Bytes
一键复制 编辑 原始数据 按行查看 历史
David 提交于 2023-06-12 01:44 . Fix run.sh shebang (#4561)
#!/usr/bin/env bash
function find_python_command() {
if command -v python &> /dev/null
then
echo "python"
elif command -v python3 &> /dev/null
then
echo "python3"
else
echo "Python not found. Please install Python."
exit 1
fi
}
PYTHON_CMD=$(find_python_command)
if $PYTHON_CMD -c "import sys; sys.exit(sys.version_info < (3, 10))"; then
$PYTHON_CMD scripts/check_requirements.py requirements.txt
if [ $? -eq 1 ]
then
echo Installing missing packages...
$PYTHON_CMD -m pip install -r requirements.txt
fi
$PYTHON_CMD -m autogpt $@
read -p "Press any key to continue..."
else
echo "Python 3.10 or higher is required to run Auto GPT."
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化