# pip: Package manager

`pip` is the [package installer](https://packaging.python.org/guides/tool-recommendations/) for Python. You can use pip to install packages from the [Python Package Index](https://pypi.org/) and other indexes.

The packages `pip` installed could be a Python module or executable binaries.

### Playaround

Let's have a look at `wikipedia` module, installation:

```bash
pip install wikipedia
```

Then we create a Python script with:

```python
import wikipedia
result = wikipedia.page("Macao Polytechnic Institute")
print(result.summary)
```

We can get:

```bash
Macao Polytechnic Institute (IPM; Chinese: 澳門理工學院; Portuguese: Instituto Politécnico de Macau) was established in 1981. It is located in the Macao Special Administrative Region of the People's Republic of China. MPI is a public Higher education institution with an emphasis on applied knowledge and skills.
```


---

# 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://pyml.aspires.cc/chapter2/pip-package-manager.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.
