Fixed pip import to accomodate refactor in pip 10.0

This commit is contained in:
M. Dudley 2018-04-03 10:29:09 -04:00
parent 2dea43a3c4
commit 9c6031cdc7
2 changed files with 9 additions and 2 deletions

View File

@ -13,7 +13,11 @@ try:
except ImportError:
from ordereddict import OrderedDict
import pip
try:
import pip._internal as pip
except ImportError:
import pip
import pkg_resources
# inline:
# from graphviz import backend, Digraph

View File

@ -6,7 +6,10 @@
import pickle
import sys
import pip
try:
import pip._internal as pip
except ImportError:
import pip
def main():