diff --git a/virtualenv.py b/virtualenv.py index f1d8a377c..0c47e4f72 100755 --- a/virtualenv.py +++ b/virtualenv.py @@ -1057,6 +1057,8 @@ def space_path2url(p): try: from pip._internal import main as _main + if type(_main) is type(sys): # + _main = _main.main # nested starting in Pip 19.3 cert_data = pkgutil.get_data("pip._vendor.certifi", "cacert.pem") except ImportError: from pip import main as _main