Pipenv卡在“⠋锁定…”

2024-09-30 06:18:26 发布

您现在位置:Python中文网/ 问答频道 /正文

为什么我的pipenv在安装[numpy | opencv | pandas]时卡在“锁定…”阶段?在

当运行pipenv install pandaspipenv update时,它会挂起很长一段时间,并显示一条消息和加载屏幕,显示它仍处于锁定状态。为什么?我需要做什么?在


Tags: installnumpy消息pandas屏幕状态pipenvupdate
1条回答
网友
1楼 · 发布于 2024-09-30 06:18:26

您的软件包正在安装,您的车轮正在制造中

也许更好的术语来描述这种状态应该是构建和锁定…'或类似的东西。在

如果您安装的是numpy、opencv、pandas或其他大型软件包,这种情况尤其可能发生。在

在后台发生的事情是pipenv正在下载您的包,并可能正在构建轮子。在

在这种情况下,补救办法通常是很强的耐心。

什么是锁定?在

要了解pipenv上下文中的“锁定”是什么,可以在这里阅读更多内容:https://docs.pipenv.org/en/latest/basics/#pipenv-lock

$ pipenv lock is used to create a Pipfile.lock, which declares all dependencies (and sub-dependencies) of your project, their latest available versions, and the current hashes for the downloaded files. This ensures repeatable, and most importantly deterministic, builds.

然而,有时候,不是只是一个缓慢/大型的安装,而是您的Pipfile[.lock]的问题。如果您非常确定这是问题所在,请尝试pipenv lock clear并重新运行pipenv install命令,同时检查this thread以获取更多信息。在

相关问题 更多 >

    热门问题