# Use private pip repositories

To use private pip repository you must add customized `pip.conf` file pointing to your custom PyPI repository.

For example, your custom pip.conf file can look like this:

```
[global]
timeout = 60
index-url = http://pypi.python.org/simple/
```

If you need to specify the certificate to use during `pip install` you want to specify the path to it in a `pip.conf` file e.g.

```
[global]
timeout = 60
index-url = http://pypi.python.org/simple/
cert = /model/files/cert.pem
```

You can tell `pip` to use this `pip.conf`file in the `install-command` field inside `serving.yaml`:

```yaml
kind: Model
name: linear_regression
runtime: "hydrosphere/serving-runtime-python-3.7:$released_version$"
install-command: "PIP_CONFIG_FILE=pip.conf pip install -r requirements.txt"
payload:
  - "src/"
  - "requirements.txt"
  - "pip.conf"  # location of your pip.conf
  - "cert.pem"  # location of your certificate. It'll be available under /model/files/cert.pem
  - "model.h5"
contract:
  name: infer
  inputs:
    x:
      shape: [-1, 2]
      type: double
  outputs:
    y:
      shape: [-1]
      type: double
```


---

# 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://docs.hydrosphere.io/release-2.4.0/quickstart/how-to/pip-config.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.
