diff --git a/upip/upip.py b/upip/upip.py index d88fde9b..2c612826 100644 --- a/upip/upip.py +++ b/upip/upip.py @@ -56,7 +56,7 @@ def _makedirs(name, mode=0o777): os.mkdir(s) ret = True except OSError as e: - if e.args[0] != errno.EEXIST: + if e.args[0] != errno.EEXIST and e.args[0] != errno.EISDIR: raise ret = False return ret