Skip to content

Commit

Permalink
Merge pull request #107 from dcbroad3/master
Browse files Browse the repository at this point in the history
Resolve import issue with pip 20+
  • Loading branch information
JakeMathews authored Feb 5, 2020
2 parents 1c1611d + 247cf51 commit 32b0016
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/resources/pip-inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
import pip

pip_major_version = int(pip.__version__.split(".")[0])
if pip_major_version >= 10:
if pip_major_version >= 20:
from pip._internal.req import parse_requirements
from pip._internal.network.session import PipSession
elif pip_major_version >= 10:
from pip._internal.req import parse_requirements
from pip._internal.download import PipSession
else:
Expand Down

0 comments on commit 32b0016

Please sign in to comment.