简体   繁体   English

pip 无法下载 jupyter 的要求

[英]pip fails to download requirements for jupyter

I'm on a linux machine and want to download a python package (jupyter) and all of it's requirements for another python version and platform (windows 64 platform).我在一台 linux 机器上,想下载一个 python 包(jupyter)以及它对另一个 python 版本和平台(windows 64 平台)的所有要求。 So I enter:所以我输入:

pip download --python-version='36' --implementation='cp' --platform='win_amd64' --only-binary=:all: jupyter

But then the following error occurs:但随后出现以下错误:

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

That's because PyPI only has the source version of pandocfilters package.那是因为 PyPI 只有pandocfilters包的源版本。 You can check it here > https://pypi.python.org/pypi/pandocfilters/1.4.2你可以在这里查看> https://pypi.python.org/pypi/pandocfilters/1.4.2

I can only see three solutions:我只能看到三个解决方案:

  1. Use another method (other than pip) to download all jupyter requirements;使用另一种方法(pip 除外)下载所有 jupyter 要求;
  2. Use a flag to tell pip to go ahead if an error occurs (an error like the one above).使用标志告诉 pip 在发生错误时继续执行(类似于上面的错误)。 Have searched extensively and haven't found;找遍了也没找到;
  3. Write my own code that will read all requirements of jupyter (and the requirements of the requirements and so on) and will download them individualy.编写我自己的代码,该代码将读取 jupyter 的所有要求(以及要求的要求等)并单独下载它们。

Having already google arround for the first two solutions and haven't found anything, I go for the third solution.已经谷歌搜索了前两个解决方案并且没有找到任何东西,我选择了第三个解决方案。 But I just can't dismiss the feeling that I'm reinventig the wheel!但我不能否认我正在重新发明轮子的感觉!

Is there a more straightforward way to accomplish my goal (download all package requirements including pandocfilters for jupyter)?有没有更直接的方法来实现我的目标(下载所有包要求,包括 jupyter 的 pandocfilters)?

您想使用3.6版,而不是36

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM