kRa*_*y R 5 python pip python-2.7
上下文:\n这是问题https://github.com/pypa/pip/issues/6717#issue-468204416我面临\n并试图通过\n https://github.com/pypa/pip
解决/问题/6717#issuecomment-511652167
我想用
\n\n--no-build-isolation\nRun Code Online (Sandbox Code Playgroud)\n\n在 py2.7 venv 中如果我这样做:
\n\npip install bottleneck==1.2.1 --no-build-isolation\n\nCollecting bottleneck==1.2.1\nCollecting numpy (from bottleneck==1.2.1)\n Downloading https://files.pythonhosted.org/packages/d7/b1/3367ea1f372957f97a6752ec725b87886e12af1415216feec9067e31df70/numpy-1.16.5-cp27-cp27mu-manylinux1_x86_64.whl (17.0MB)\n 100% |\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88| 17.0MB 1.2MB/s \nInstalling collected packages: numpy, bottleneck\nSuccessfully installed bottleneck-1.2.1 numpy-1.16.5\nYou are using pip version 18.0, however version 19.2.3 is available.\nYou should consider upgrading via the \'pip install --upgrade pip\' command.\n\nRun Code Online (Sandbox Code Playgroud)\n\n安装得很好
\n\n$ cat abc.txt \nbottleneck==1.2.1, --no-build-isolation\nRun Code Online (Sandbox Code Playgroud)\n\n但
\n\n$pip install -r abc.txt\nUsage: pip [options]\n\nInvalid requirement: bottleneck==1.2.1, --no-build-isolation\npip: error: no such option: --no-build-isolation\n\nYou are using pip version 18.0, however version 19.2.3 is available.\nYou should consider upgrading via the \'pip install --upgrade pip\' command.\n\n\nRun Code Online (Sandbox Code Playgroud)\n\n和
\n\n$ pip install -r abc.txt\nUsage: pip [options]\n\nInvalid requirement: bottleneck==1.2.1 --no-build-isolation\npip: error: no such option: --no-build-isolation\n\nYou are using pip version 18.0, however version 19.2.3 is available.\nYou should consider upgrading via the \'pip install --upgrade pip\' command.\n\nRun Code Online (Sandbox Code Playgroud)\n\n不工作。
\n\n我该怎么办呢。
\n\n我还尝试了瓶颈尝试安装 numpy 候选版本,但它没有帮助。
\n小智 2
将 pip 升级到 pip-20.2.2 为我解决了这个问题。命令
pip install --upgrade pip
Run Code Online (Sandbox Code Playgroud)