Skip to main content
 首页 » 编程设计

Python virtualenv requirements.txt 默认包含 wheel

2024年10月24日39emanlee

我刚刚重新安装了 python 和 virtualenv,因为我不小心弄乱了一切。我注意到我新创建的环境中的 requirements.txt 自动包含 wheel==0.24.0。这是正常的吗?这是什么?我知道 virtualenv 应该创建没有任何系统安装包的新环境。

请您参考如下方法:

我在 Windows 中设置 virtualenv 时遇到了这个问题。

要避免安装 wheel,您可以使用 --no-wheel 选项。
virtualenv venv --no-wheel

据我了解,wheel 用于处理 python 包 (.whl) 的压缩格式,pip 可以使用它来加快安装时间。 https://wheel.readthedocs.org/en/latest/