diff --git a/Lib/pip.py b/Lib/pip.py index 9422ca0370a0fb2..05bf4a8210e5f4c 100644 --- a/Lib/pip.py +++ b/Lib/pip.py @@ -115,17 +115,17 @@ def getPackageUrl(section, name): if str is bytes: section += "/np27-windows" else: - section += "/np3-windows" + section += "/np{0}{1}-windows".format(sys.version_info.major, sys.version_info.minor) elif platform.system() == "Linux": if str is bytes: section += "/np27-linux" else: - section += "/np3-linux" + section += "/np{0}{1}-linux".format(sys.version_info.major, sys.version_info.minor) elif platform.system() == "Darwin": if str is bytes: section += "/np27-macos" else: - section += "/np3-macos" + section += "/np{0}{1}-macos".format(sys.version_info.major, sys.version_info.minor) return "{PACKAGE_BASE_URL}/{section}/{name}".format( PACKAGE_BASE_URL=PACKAGE_BASE_URL, section=section, name=name