> 技术文档 > Windows 11 安装 Dify 完整指南 非docker环境_dify非docker部署

Windows 11 安装 Dify 完整指南 非docker环境_dify非docker部署


Windows 11 安装 Dify 完整指南

前置要求

  • Python 3.11
  • Node.js 18+
  • PostgreSQL 14+
  • Redis for Windows
  • Git
  • Ollama (可选,用于本地模型)

详细安装步骤

1. 安装必要软件

  1. Python 3.11

    • 从 https://www.python.org/downloads/release/python-3110/ 下载安装
    • 安装时勾选 “Add Python to PATH”
  2. Node.js 18

    • 从 https://nodejs.org/ 下载 18.x LTS 版本
    • 设置 npm 镜像
      npm config set registry https://registry.npmmirror.com
  3. PostgreSQL 14

    • 从 https://www.postgresql.org/download/windows/ 下载
    • 记住设置的超级用户密码
    • 默认端口 5432
  4. Redis

    • 从 https://github.com/microsoftarchive/redis/releases 下载
    • 安装 Redis-x64-3.0.504.msi

requirements.txt

# requirements.txtanthropic==0.23.1authlib==1.3.1azure-ai-inference==1.0.0b8azure-ai-ml==1.20.0azure-identity==1.16.1beautifulsoup4==4.12.2boto3==1.36.12bs4==0.0.1cachetools==5.3.0celery==5.4.0chardet==5.1.0cohere==5.2.4dashscope[tokenizer]==1.17.0fal-client==0.5.6flask==3.1.0flask-compress==1.17flask-cors==4.0.0flask-login==0.6.3flask-migrate==4.0.7flask-restful==0.3.10flask-sqlalchemy==3.1.1gevent==24.11.1gmpy2==2.2.1google-ai-generativelanguage==0.6.9google-api-core==2.18.0google-api-python-client==2.90.0google-auth==2.29.0google-auth-httplib2==0.2.0google-cloud-aiplatform==1.49.0google-generativeai==0.8.1googleapis-common-protos==1.63.0gunicorn==23.0.0httpx[socks]==0.27.0huggingface-hub==0.16.4jieba==0