我正试图配置我的 requirements.txt
文件,它的内容如下:
wheel
apache-airflow
我创建了
python3.8 -m venv ~/test-env
并试图进行安装。问题是python -m pip install -r requirements.txt
产生大量的消息
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for thrift
我确保在进行 requirements.txt
安装时已经安装了 wheel
:
Collecting wheel (from -r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.
但是如果我单独安装它
python -m pip install wheel
python -m pip install -r requirements
它正常工作,python -m pip -r requirements
没有任何错误信息。
那么,把 wheel
安装到 requirements.txt
中不是可能吗?在安装到 venv
时,如何妥善处理它?在安装 requirements.txt
之前安装它吗?
wheel
包,你会看到这样的描述:"该库是Python wheel打包标准的参考实现,如PEP 427所定义。" 安装它没有什么实际意义。 - SitiSchuvenv
安装(在核心Python安装中安装正常)时如何解释此错误消息? - St.Antariopython -m pip install apache-airflow
时,是否出现错误? - SitiSchu