diff --git a/index.html b/index.html index 2f6787c..ea68d04 100644 --- a/index.html +++ b/index.html @@ -191,9 +191,9 @@ $(document).ready(function(){ 'homebrew': '/wiki/homebrew.md', 'linux.git': '/wiki/linux.md', 'nodesource': '/wiki/nodesource.md', + 'pypi': "wiki/pypi.md", - } diff --git a/wiki/pypi.md b/wiki/pypi.md new file mode 100644 index 0000000..9438ff5 --- /dev/null +++ b/wiki/pypi.md @@ -0,0 +1,23 @@ +pypi 镜像使用帮助 +================= + +pypi 镜像每 5 分钟同步一次。 + +临时使用 +-------- +``` +pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package +``` + +注意,`simple` 不能少, 是 `https` 而不是 `http` + +设为默认 +-------- + +修改 `~/.pip/pip.conf` (没有就创建一个), 修改 +`index-url`至tuna,例如 + +``` +[global] +index-url = https://pypi.tuna.tsinghua.edu.cn/simple +```