使用pip重新安装需求文件 [英] Reinstalling requirement file using pip
本文介绍了使用pip重新安装需求文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试使用pip重新安装项目要求,但出现此错误.以前有一个失败的安装.如何删除它并继续?
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...
推荐答案
使用:
pip uninstall Django==1.5.4
或
pip uninstall -r requirements.txt
如果仍然不起作用,请进入这些软件包所在的Python/Lib/site-packages
目录,并删除它们.然后重新运行
If that still doesn't work, then go into you Python/Lib/site-packages
directory where these packages live, and delete them. Then re-run
`pip install -r requirements.txt`
那应该起作用.
这篇关于使用pip重新安装需求文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文