Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Add import workaround for pip 10.x #10

Closed
wants to merge 1 commit into from
Closed

Add import workaround for pip 10.x #10

wants to merge 1 commit into from

Conversation

se-bastiaan
Copy link

@se-bastiaan se-bastiaan commented May 31, 2018

Fixes #9

@carsonip
Copy link

This should be the right workaround. Please merge.

@worldmind
Copy link

As I understood from here, instead:

from pkg_resources import parse_version

try:
    from pip._internal import get_installed_distributions
except ImportError:
    from pip import get_installed_distributions

we must use:

from pkg_resources import parse_version, working_set

def get_installed_distributions():
    return [d for d in working_set]

@somewes
Copy link
Contributor

somewes commented Nov 20, 2019

@se-bastiaan this has been fixed in version 0.6.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken with pip 10.0.0b2
4 participants