pip uninstall cannot create file in default TEMP path #6019
Labels
auto-locked
Outdated issues that have been locked by automation
resolution: duplicate
Duplicate of an existing issue/PR
type: bug
A confirmed bug or unintended behavior
Environment
When I am uninstalling tensorflow-gpu package,
pip report errors and cannot finish the uninstall command.
My default TEMP path is C:\Users\ITRI\AppData\Local\Temp\,
I found it cannot create file in default TEMP path,
so pip cannot copy the files to TEMP Dir ( In my example it cannot copy leastsquareconjugategradient.h in tensorflow install Dir to TEMP Dir),
and cause errors....
(PS 1. No matter how hard I am trying...),
(PS 2. But it can create folders in default TEMP path)
The problem may related to the slash issue in path string, but python automatically changes the string's slash to two inverse slash, so I cannot pass the string with the slash type which is I want, so I cannot try it.
So I change the TEMP path in Python36_64/Lib/site-packages/pip/_internal/utils/temp_dir.py
via adding tempfile.tempdir = 'D:/PythonTemp'
And then everything is fine~
The text was updated successfully, but these errors were encountered: