Skip to content

pip.main error code #5588

@oliver-leung

Description

@oliver-leung
  • Pip version: 10.0.1
  • Python version: 3.7
  • Operating system: Windows 7

I'm trying to call the pip.main function:

>>> import pip
>>> pip.main(['install', '--user', 'numpy'])
Collecting numpy
  Downloading https://files.pythonhosted.org/packages/f3/71/94628784c3f07d4bc0dd38f8753e3f751d66cfd5a6823591179608c27f09/numpy-1.14.5-cp35-none-win_amd64.whl (13.4MB)
2

But I'm not getting any indication that the package was installed. Replacing the package with a fake returns the following:

>>> import pip
>>> pip.main(['install', '--user', 'foo'])
Collecting numpy
1

So this implies that the last number is some sort of error code, but I can't seem to find any documentation on what the error code means. Is there some documentation anywhere on what they mean?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions