I try to reinstall requirements for my project using pip but I get this error. There is a previous failed installation. how can I delete it and proceed ?
E:\projects\project course\tkz>pip install -r requirements.txt
Downloading/unpacking Django==1.5.4 (from -r requirements.txt (line 1))
pip can't proceed with requirement 'Django==1.5.4 (from -r requirements.txt (lin
e 1))' due to a pre-existing build directory.
location: c:\users\sina\appdata\local\temp\pip_build_sina\Django
This is likely due to a previous installation that failed.
pip is being responsible and not assuming it can delete this.
Please delete it and try again.
Cleaning up...
You need to delete the whole directory:
Now you can reinstall Django again
You can just go ahead and delete that directory, that's what the message is telling you.
Can you try
pip install -I django==1.5.4
?Use:
or
If that still doesn't work, then go into you
Python/Lib/site-packages
directory where these packages live, and delete them. Then re-runand that should work.