Usage of pip module PyPI Package Manager

suggest change

Introduction

Sometimes you may need to use the pip package manager from Python, for example when an import raises ImportError and you want to handle the exception. The Windows launcher Python_root/Scripts/pip.exe calls the main function in the pip package. That function is an internal entry point for pip’s own console scripts, not a supported library API, and calling it warns that this wrapper will fail in a future pip. For usage of pip as an executable see: pip: PyPI Package Manager

Syntax

The names below are the old top-level pip helpers. Current pip exposes only main on the pip package. The other helpers have moved under pip._internal or been removed.

- param args {list}
- returns {boolean}
- param args {list}
- returns {integer} If it does not fail, it returns 0
- Command name auto-correct.
- param name {string}
- returns a similar command name, or None
- Is distribution an editable install?
- param dist {object}
- returns {boolean}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents