pip common operations

  1. pip source

Find it from the official website: https://mirrors.tuna.tsinghua.edu.cn

https://pypi.tuna.tsinghua.edu.cn/simple

  1. pip-settings

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

  1. pip upgrade

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U

  1. pip mirror source configuration file

vim ~/.pip/pip.conf
add the following content

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
  1. view git source

    pip config list

  2. Manually download the pytorch installation package address

    https://download.pytorch.org/whl/cu$(CUDA_VERSION_WITHOUT_DOT)/torch_stable.html

  3. Modify the source download library

    pip install --user -i https://pypi.tuna.tsinghua.edu.cn/simple pyarrow

Guess you like

Origin blog.csdn.net/weixin_43870390/article/details/131091561