gpt4 book ai didi

django - 使用pip重新安装需求文件

转载 作者:行者123 更新时间:2023-12-04 10:25:25 25 4
gpt4 key购买 nike

我尝试使用 pip 重新安装我的项目的要求,但出现此错误。以前安装失败。我怎样才能删除它并继续?

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这些包所在的目录,并删除它们。然后重新运行
pip install -r requirements.txt
这应该有效。

关于django - 使用pip重新安装需求文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21320682/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com