Skip to main content

Authentication

echo "machine pkg.root.io login token password YOUR_ROOT_TOKEN" >> ~/.netrc
chmod 600 ~/.netrc

Configure the Registry

pip config set global.index-url https://pkg.root.io/pypi/simple &&
pip config set global.extra-index-url https://pypi.org/simple

Install

pip install -r requirements.txt

Environment Variable

export PIP_INDEX_URL="https://pkg.root.io/pypi/simple"

CI/CD

echo "machine pkg.root.io login token password $ROOT_TOKEN" >> ~/.netrc
chmod 600 ~/.netrc
pip config set global.index-url https://pkg.root.io/pypi/simple
pip config set global.extra-index-url https://pypi.org/simple

Troubleshooting

IssueSolution
401 UnauthorizedCheck ~/.netrc token and chmod 600
Package not foundConfirm extra-index-url includes PyPI as fallback
Hash mismatchExpected — Root-patched packages have different hashes than PyPI