diff --git a/Lib/packaging/install.py b/Lib/packaging/install.py --- a/Lib/packaging/install.py +++ b/Lib/packaging/install.py @@ -492,6 +492,12 @@ purelib_path = get_path('purelib') # trying to write a file there try: + if not os.path.exists(purelib_path): + message = """The installation path {} seems not to exist. +This likely implies that you are trying to install a 3rd-party package +without a working Python installation. That is unsupported.""" + logger.info(message.format(purelib_path)) + return False with tempfile.NamedTemporaryFile(suffix=project, dir=purelib_path) as testfile: testfile.write(b'test')

AltStyle によって変換されたページ (->オリジナル) /