# WARNING: The repository located at myrepo.local is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host myrepo.local'.
ERROR: Could not find a version that satisfies the requirement mypkg

- **ID:** `python/pip-index-url-http-insecure`
- **Domain:** python
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

pip refuses to use an HTTP (non-TLS) index unless the host is explicitly marked as trusted.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   pip install --index-url http://myrepo.local/simple --trusted-host myrepo.local mypkg
   ```
2. **** (90% success)
   ```
   # ~/.config/pip/pip.conf
[global]
index-url = http://myrepo.local/simple
trusted-host = myrepo.local
   ```

## Dead Ends

- **** — HTTP index is still rejected without --trusted-host. (90% fail)
- **** — Environment variable changes the index but not the trust decision. (85% fail)
- **** — Cache does not affect trust evaluation of the index host. (95% fail)
