安装AiPy需遵循以下步骤:
environmental preparation
首先确保系统已安装Python 3.9+,可通过python3 --version
验证。版本不足时需从Python官网下载升级。
Installation
- Standard Installation: Implementation
pip install aipyapp
自动安装主程序及依赖库 - 开发版安装:通过Git克隆仓库后,在虚拟环境中用
pip install -r requirements.txt
mounting - Windows免安装版:下载官方提供的压缩包,解压后运行update.bat即可
Model Configuration
需在安装目录或用户目录创建.aipyconfig
file, configure the following:
- 云端API模式:填写DeepSeek等服务的API密钥
- 本地模型模式:配置Ollama/LMStudio等本地模型的API地址
启动验证
importationaipython
启动交互界面,默认进入任务模式即表示安装成功。
This answer comes from the articleAiPy: automating the task of running Python code for data analysisThe