一个简单的代码解释器,支持解释Python代码, 支持 pandas, numpy, matplotlib, seaborn, scikit-learn等库
1. 拉取Code解释器镜像
docker registry.cn-hangzhou.aliyuncs.com/ripper/python-executor:latest2. 克隆仓库
git clone https://github.com/RipperTs/python-code-Interpreter.git3. 配置ENV文件
cp .env.example .env4. 安装依赖
pip install -r requirements.txt5. 运行
python main.py在线接口文档: https://apifox.com/apidoc/shared-1dd2957c-1f9e-4179-80a3-c6e16790feeb
# 安装字体包
sudo apt-get update
sudo apt-get install fonts-wqy-zenhei
# 查找字体路径, 示例:/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc
fc-list :lang=zh查看内置库: docker-requirements.txt