Fixed pip import to accomodate refactor in pip 10.0
This commit is contained in:
parent
2dea43a3c4
commit
9c6031cdc7
|
@ -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
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
import pickle
|
||||
import sys
|
||||
|
||||
import pip
|
||||
try:
|
||||
import pip._internal as pip
|
||||
except ImportError:
|
||||
import pip
|
||||
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Reference in New Issue