Skip to content

Commit

Permalink
update pypi url
Browse files Browse the repository at this point in the history
  • Loading branch information
sparkcyf authored Nov 18, 2023
1 parent 4e84979 commit 3aea971
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions site/help/pypi.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ The PyPI Mirror is synchronized with [pypi.org](https://pypi.org) with [bandersn
## TL;DR

``` sh
pip install --upgrade pip --index-url https://mirrors.sustech.edu.cn/pypi/simple
pip config set global.index-url https://mirrors.sustech.edu.cn/pypi/simple
pip install --upgrade pip --index-url https://mirrors.sustech.edu.cn/pypi/web/simple
pip config set global.index-url https://mirrors.sustech.edu.cn/pypi/web/simple
```

That's all.
Expand Down Expand Up @@ -52,7 +52,7 @@ You may need to replace `pip` with `pip3`.
#### For pip >= 10.0

``` sh
pip config set global.index-url https://mirrors.sustech.edu.cn/pypi/simple
pip config set global.index-url https://mirrors.sustech.edu.cn/pypi/web/simple
```

::: warning
Expand All @@ -66,14 +66,14 @@ You can upgrade to the latest version first:

``` sh
# you may need root privilege
pip install --upgrade pip --index-url https://mirrors.sustech.edu.cn/pypi/simple
pip install --upgrade pip --index-url https://mirrors.sustech.edu.cn/pypi/web/simple
```

Or, you can stay with the old version and manually edit the configuration file with your text editor:

``` toml
[global]
index-url = https://mirrors.sustech.edu.cn/pypi/simple
index-url = https://mirrors.sustech.edu.cn/pypi/web/simple
```

Path of the per-user configuration file:
Expand All @@ -89,7 +89,7 @@ You can refer to [pip user guide](https://pip.pypa.io/en/stable/user_guide/#conf
## Temporary Use

``` sh
pip install package-name --index-url https://mirrors.sustech.edu.cn/pypi/simple
pip install package-name --index-url https://mirrors.sustech.edu.cn/pypi/web/simple
```

## Install Packages without Root Privilege
Expand Down Expand Up @@ -137,4 +137,4 @@ Please refer to <https://pip.pypa.io/en/stable/user_guide/#user-installs> for de

If you need Python of different versions, for example, Python 3.4 for project A and Python 3.7 for project B, you can consider create several Conda environments.

Please refer to <https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html> for detailed usage.
Please refer to <https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html> for detailed usage.

0 comments on commit 3aea971

Please sign in to comment.