- 安装依赖
pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple/pip install pyspur
- 初始化项目
pyspur init ../aidoc输出✓ Created .env.example ✓ Created __init__.py ✓ Created data directory ✓ Created tools directory ✓ Created spurs directory ✓ Created tools/__init__.py ✓ Created spurs/__init__.py ✓ Created a .gitignore file PySpur project initialized successfully! 🚀 Next steps: 1. Review and update the .env file with your configuration 2. For quick protoype: start the PySpur server with 'pyspur serve --sqlite' 3. For production: a. Provide a PostgreSQL database details in the .env file b. Start the server with 'pyspur serve'
附:
依赖管理:
# 安装依赖
pip install -r requirements.txt
# 生成依赖描述文件
pip freeze > requirements.txt