Uninstallation fails with WindowsError: [Error 206] The filename or extension is too long #5155
Labels
auto-locked
Outdated issues that have been locked by automation
resolution: duplicate
Duplicate of an existing issue/PR
Description:
pip install --upgrade MODULE
fails to uninstall the old version if its full path is too long.To reduce the path length, I set the envar
TMPDIR
to the shortest possible, egC:\temp
by still.What I've run:
2 demonstrations, the 1st when ugrading pip from 9.0.1 to 9.0.3:
And when upgrading another module:
Possible solution:
I know Windows has a "long path prefix"
\?\\
but I do not know if it is a viable option and if eventual Windows API implied there will still work with such a patch.Perhaps there already is a workaround I did miss?
The text was updated successfully, but these errors were encountered: