Steve Dower added the comment: I found that using zipimporter('...whl').load_module(pip) directly works fine, so you may be able to use that as a workaround. (Forgot to mention it in my initial comment, but that's what prompted me to check against the ABC.)
I also backed out that change from the latest 3.3, built and tried again but got the same result. That said, I'm not 100% sure my build is reliable, since I don't regularly build CPython right now. Here are my results: Python 3.3.4+ (3.3:4330b3cb7245+, Feb 14 2014, 09:03:52) [MSC v.1800 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.path[:] = r"D:\...\pip-1.5.2-py2.py3-none-any.whl" >>> import pip Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named 'pip' I also tried using zipimporter directly, which got further but still failed (probably because of my build - _ssl was not built): >>> from zipimport import zipimporter >>> zipimporter(r"D:\...\pip-1.5.2-py2.py3-none-any.whl").load_module('pip') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:\...\pip-1.5.2-py2.py3-none-any.whl\pip\__init__.py", line 10, in <module> File "D:\...\pip-1.5.2-py2.py3-none-any.whl\pip\util.py", line 18, in <module> File "D:\...\pip-1.5.2-py2.py3-none-any.whl\pip\_vendor\distlib\version.py", line 14, in <module> File "D:\...\pip-1.5.2-py2.py3-none-any.whl\pip\_vendor\distlib\compat.py", line 66, in <module> ImportError: cannot import name HTTPSHandler ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20621> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com