我在一台 linux 机器上,想下载一个 python 包 (jupyter) 以及它对另一个 python 版本和平台(windows 64 平台)的所有要求。所以我输入:
pip 下载 --python-version='36' --implementation='cp' --platform='win_amd64' --only-binary=:all: jupyter
但随后出现以下错误:
Could not find a version that satisfies the requirement pandocfilters>=1.4.1 (from nbconvert->jupyter) (from versions: )
No matching distribution found for pandocfilters>=1.4.1 (from nbconvert->jupyter
那是因为PyPI只有pandocfilters包的源码版本。你可以在这里查看 > https://pypi.python.org/pypi/pandocfilters/1.4.2
我只能看到三个解决方案:
- 使用其他方法(pip 除外)下载所有 jupyter 要求;
- 如果发生错误(如上所示的错误),请使用标志告诉 pip 继续。已广泛搜索但未找到;
- 编写我自己的代码来读取 jupyter 的所有要求(以及要求的要求等)并单独下载它们。
我已经用谷歌搜索了前两个解决方案,但没有找到任何东西,我选择了第三个解决方案。但我就是无法消除我正在重新发明轮子的感觉!
是否有更直接的方法来实现我的目标(下载所有包要求,包括用于 jupyter 的 pandocfilters)?
请您参考如下方法:
您想使用版本 3.6,而不是 36
