- pip源
从官网找:https://mirrors.tuna.tsinghua.edu.cn
https://pypi.tuna.tsinghua.edu.cn/simple
- pip设置
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
- pip升级
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U
- pip镜像源配置文件
vim ~/.pip/pip.conf
添加如下内容
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
-
查看git源
pip config list
-
手动下载pytorch安装包地址
https://download.pytorch.org/whl/cu$(CUDA_VERSION_WITHOUT_DOT)/torch_stable.html
RUN pip3 install torch1.10.0+cu113 torchvision0.11.1+cu113 torchaudio==0.10.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
RUN pip3 install -v kaldifeat
https://download.pytorch.org/whl/cu113/torch-1.10.0%2Bcu113-cp38-cp38-linux_x86_64.whl
https://download.pytorch.org/whl/cu113/torchvision-0.11.1%2Bcu113-cp38-cp38-linux_x86_64.whl
https://download.pytorch.org/whl/cu113/torchaudio-0.10.0%2Bcu113-cp38-cp38-linux_x86_64.whl
-
修改源下载库
pip install --user -i https://pypi.tuna.tsinghua.edu.cn/simple pyarrow