aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/common
diff options
context:
space:
mode:
Diffstat (limited to 'yardstick/common')
-rw-r--r--yardstick/common/packages.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yardstick/common/packages.py b/yardstick/common/packages.py
index a128b74..c65eab2 100644
--- a/yardstick/common/packages.py
+++ b/yardstick/common/packages.py
@@ -15,7 +15,7 @@
import logging
import re
-import pip
+from pip._internal.main import main
from pip._internal import exceptions as pip_exceptions
from pip._internal.operations import freeze
@@ -36,7 +36,7 @@ def _pip_main(package, action, target=None):
cmd = [action, package, '--upgrade']
if target:
cmd.append('--target=%s' % target)
- return pip._internal.main(cmd)
+ return main(cmd)
def _pip_execute_action(package, action=ACTION_INSTALL, target=None):