Python virtualenv requirements.txt 默认包含 wheel

标签 python virtualenv python-wheel

我刚刚重新安装了 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/

关于Python virtualenv requirements.txt 默认包含 wheel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31622348/

相关文章:

python - 使用 SciPy 或 NumPy 生成具有指定权重的离散随机变量

python - virtualenv、python 和 subversion

python - 如何在Python中删除数据框中单词的精确匹配?

python - 如何在 PyCharm 中为自定义模块启用代码完成?

python - 如何在python中使用 ":"而不是 "="编写.cfg文件

python - 使用 Python 3 设置 virtualenv 时出错

python - Python3 的 venv 与 virtualenv 有何不同?

python - 基于平台创建pythonwheel

python - 如何在包含软件包的存储库之外构建轮子?

django - 错误: invalid command 'bdist_wheel'