2017-09-26 104 views
0

我想用pip从本地文件夹安装我自己的软件包。我在pip.ini中添加了一个find-links选项和本地文件夹,我将这个文件夹保存在这个文件夹中。pip检查版本标签吗?

  • 如果车轮的版本是0.2.0,那有效。
  • 如果版本是0.2.0dev0,那就行了。
  • 如果版本是0.2.0internal,我有以下错误:

Could not find a version that satisfies the requirement myownpackage (from versions: 0.2.0internal) No matching distribution found for myownpackage

点子似乎看到了0.2.0internal版本,但他不想要它,为什么呢?

(PIP 9.0.1,蟒蛇2.7.13中,Windows 10)

回答

1

随着一点点研究,我发现这个在PEP440

The canonical public version identifiers MUST comply with the following scheme:

[N!]N(.N)*[{a|b|rc}N][.postN][.devN]

Public version identifiers MUST NOT include leading or trailing whitespace.

Public version identifiers MUST be unique within a given distribution.

Installation tools SHOULD ignore any public versions which do not comply with this scheme but MUST also include the normalizations specified below. Installation tools MAY warn the user when non-compliant or ambiguous versions are detected.

我想点子忽略我的版本,因为它不符合该计划。