Skip to content

Commit

Permalink
Fix import to work with pip version 18.1
Browse files Browse the repository at this point in the history
It also works with previous versions of pip.

The alias to 'get_installed_distributions' in 'pip._internal' module
was removed in pip commit db72d427c5538a29df182bf7a724c304ac323cf6

Ref:
pypa/pip@db72d42

Fixes #105
  • Loading branch information
naiquevin committed Oct 8, 2018
1 parent a7df382 commit ba67474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipdeptree.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ordereddict import OrderedDict

try:
from pip._internal import get_installed_distributions
from pip._internal.utils.misc import get_installed_distributions
from pip._internal.operations.freeze import FrozenRequirement
except ImportError:
from pip import get_installed_distributions, FrozenRequirement
Expand Down

0 comments on commit ba67474

Please sign in to comment.