# pip源加速

豆瓣源是我目前为止用的比较好用的pip源，速度嗷嗷快，这里给出更新pip源为豆瓣源的方法。

在linux系统中，在`~/`目录下新建文件夹`.pip`，并新建编辑`pip.conf`文件，加入如下内容：

```
[global]
index-url = https://pypi.douban.com/simple
```

即可将pip源更新至豆瓣源


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://anxiang1836.gitbook.io/ubuntu-guide/01-ubuntu-setting/04-pip-speedup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
