# readme ```bash # 设置国内镜像 # pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple # poetry source add --priority=default mirrors https://pypi.tuna.tsinghua.edu.cn/simple/ brew install libmagic # 设置代理 export http_proxy=http://127.0.0.1:10818 export https_proxy=http://127.0.0.1:10818 # 清理缓存 pip cache purge # 生成虚拟环境 python -m venv .venv # 激活虚拟环境 source .venv/bin/activate # deactivate which python # install poetry pip install poetry poetry config virtualenvs.prefer-active-python true # python path poetry run which python # poetry add fastapi, uvicorn poetry install --no-root # run python main.py # nohup python main.py > output.log 2>&1 & # 排除embeddings文件夹 sh cicd/scripts/release.sh # 首次-上传所有 sh cicd/scripts/release-all.sh ``` ```bash ```