Skip to content

tmp is on a different filesystem: 'OSError: [Errno 18] Invalid cross-device link' #103

@vbabiy

Description

@vbabiy

diff --git a/pip.py b/pip.py
--- a/pip.py
+++ b/pip.py
@@ -4714,7 +4714,7 @@
new_dir = os.path.dirname(new_path)
logger.info('Removing file or directory %s' % full_path)
self._moved_paths.append((prefix, path))

  •                os.renames(full_path, new_path)
    
  •                shutil.move(full_path, new_path)
             for pth in self.pth.values():
                 pth.remove()
             logger.notify('Successfully uninstalled %s' % self.dist.project_name)
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions