You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
577 B

# 激活虚拟环境
conda activate rag
# 永久修改pip源为阿里云镜像源适用于Windows系统
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# 验证是否修改成功
pip config list
global.index-url='https://mirrors.aliyun.com/pypi/simple/'
# 获取依赖了哪些包
pip freeze > requirements.txt
# 或者,这个命令可以避免本地路径信息
pip list --format=freeze > requirements.txt
# 新机器安装包
pip install -r D:\dsWork\dsProject\dsRag\requirements.txt
# 更新指定的包
pip install --upgrade lightrag-hku