Pip卸载并安装相同的软件包会显示"AssertionError:多个.dist-info目录" [英] Pip Uninstall and Install same package gives 'AssertionError: Multiple .dist-info directories'

查看:951
本文介绍了Pip卸载并安装相同的软件包会显示"AssertionError:多个.dist-info目录"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在重新安装和安装同一软件包时遇到问题.我收到"AssertionError:多个.dist-info目录"错误.我认为这与pip卸载没有完全摆脱软件包中的所有文件有关,但是不确定如何解决这种情况.我不知道什么信息对您有帮助,但也许这是一个在IIS上的virtualenv上运行的Django项目.

I am having trouble installing and installing again the same package. I get an 'AssertionError: Multiple .dist-info directories' error. I think that it has something to do with the pip uninstall not completely getting rid of all the files of a package, but am not sure how to remedy the situation. I don't know what information would be helpful here, except maybe that this is a Django project, running on virtualenv on IIS.

我刚刚重新安装了python及其新版本的pip.

I just re-installed python and with it, a new version of pip.

推荐答案

删除该特定软件包的相关pip构建目录,然后尝试重新安装.可以的

Remove the related pip build directory for that particular package and try installing it again. That'd work.

如果您在虚拟环境中工作,请说venv,则pip构建目录将为<path-to-venv>/venv/build/<package-name>.

If you're working in a virtual environment say venv, pip build directory will be <path-to-venv>/venv/build/<package-name>.

这篇关于Pip卸载并安装相同的软件包会显示"AssertionError:多个.dist-info目录"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆