From 8a74666d40087a640a18baf5d39396c114e6552b Mon Sep 17 00:00:00 2001 From: wordlesswind Date: Tue, 8 Nov 2022 18:18:30 +0800 Subject: [PATCH] Revert "Merge branch 'patch-1' of github.com:wordlesswind/mirror-web into patch-1" This reverts commit 53e8a51a1f87bf287c08a4bf3469f204db2ed72b, reversing changes made to 0765d92feec1a70f6f73ab4c8b2bbe26665d7b1a. --- help/_posts/1970-01-01-pypi.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/help/_posts/1970-01-01-pypi.md b/help/_posts/1970-01-01-pypi.md index 5b019ac..7aa0323 100644 --- a/help/_posts/1970-01-01-pypi.md +++ b/help/_posts/1970-01-01-pypi.md @@ -22,13 +22,13 @@ pip install -i https://{{ site.pypi }}/simple some-package ``` python -m pip install --upgrade pip -pip config set global.extra-index-url https://{{ site.pypi }}/simple +pip config set global.index-url https://{{ site.pypi }}/simple ``` 如果您到 pip 默认源的网络连接较差,临时使用本镜像站来升级 pip: ``` -python -m pip install --extra-index-url https://{{ site.pypi }}/simple --upgrade pip +python -m pip install -i https://{{ site.pypi }}/simple --upgrade pip ``` ### 配置多个镜像源