2017-09-26 67 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.

我想點子忽略我的版本,因爲它不符合該計劃。