临时使用
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
设为默认
python -m pip install --upgrade pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
...小于 1 分钟
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
python -m pip install --upgrade pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
sudo apt remove nodejs
sudo apt remove npm
# 删除残留文件
cd /usr/local/lib -> 删除所有node和node_modules文件
cd /usr/local/include -> 删除所有node和node_modules文件
cd /usr/local/bin -> 删除所有node和node_modules文件