gpt4 book ai didi

python - 当requirements.txt中提到pip包时,如何通过--no-build-isolation安装它们?

转载 作者:行者123 更新时间:2023-12-04 13:00:42 51 4
gpt4 key购买 nike

语境 :
这就是问题https://github.com/pypa/pip/issues/6717#issue-468204416我面对
并试图通过解决
https://github.com/pypa/pip/issues/6717#issuecomment-511652167

我想用

--no-build-isolation

在 py2.7 venv 如果我这样做:
pip install bottleneck==1.2.1 --no-build-isolation

Collecting bottleneck==1.2.1
Collecting numpy (from bottleneck==1.2.1)
Downloading https://files.pythonhosted.org/packages/d7/b1/3367ea1f372957f97a6752ec725b87886e12af1415216feec9067e31df70/numpy-1.16.5-cp27-cp27mu-manylinux1_x86_64.whl (17.0MB)
100% |████████████████████████████████| 17.0MB 1.2MB/s
Installing collected packages: numpy, bottleneck
Successfully installed bottleneck-1.2.1 numpy-1.16.5
You are using pip version 18.0, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.


它安装得很好
$ cat abc.txt 
bottleneck==1.2.1, --no-build-isolation


$pip install -r abc.txt
Usage: pip [options]

Invalid requirement: bottleneck==1.2.1, --no-build-isolation
pip: error: no such option: --no-build-isolation

You are using pip version 18.0, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.




$ pip install -r abc.txt
Usage: pip [options]

Invalid requirement: bottleneck==1.2.1 --no-build-isolation
pip: error: no such option: --no-build-isolation

You are using pip version 18.0, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.


不工作。

我该怎么做。

我也试过 bottleneck tries to install numpy release candidate但它没有帮助。

最佳答案

将 pip 升级到 pip-20.2.2 为我解决了这个问题。
命令

pip install --upgrade pip

关于python - 当requirements.txt中提到pip包时,如何通过--no-build-isolation安装它们?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57893129/

51 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com