16 lines
439 B
Plaintext
16 lines
439 B
Plaintext
|
# 激活虚拟环境
|
|||
|
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 install -r D:\dsWork\dsProject\dsRag\requirements.txt
|