我要评分
获取效率
正确性
完整性
易理解

Installing Dify

  1. Obtain the Dify 1.13.3 source code.
    1
    git clone --branch 1.13.3 --depth 1 https://github.com/langgenius/dify.git 
    
  2. Go to the Dify source code directory and check the API and web version requirements.
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    cd dify
    python3 - <<'PY'
    import json 
    import tomllib  
    
    api = tomllib.load(open("api/pyproject.toml", "rb")) 
    web = json.load(open("web/package.json")) 
    print(api["project"]["name"], api["project"]["version"], api["project"]["requires-python"]) 
    print("api_package", api.get("tool", {}).get("uv", {}).get("package")) 
    print(web["name"], web["version"], web["engines"]["node"], 
    web["packageManager"]) 
    PY