我使用PEP440中建议的本地版本标签,并且打包了两个版本:turicreate-6.2
和turicreate-6.2+minimal
。
我首先安装turicreate 6.2+minimal
,
$ pip install target/turicreate-6.2+minimal-cp36-cp36m-macosx_10_12_intel.macosx_10_12_x86_64.macosx_10_13_intel.macosx_10_13_x86_64.macosx_10_14_intel.macosx_10_14_x86_64.whl
然后我尝试安装6.2,希望pip可以卸载6.2+minimal
,但它说
pip install turicreate==6.2
Requirement already satisfied: turicreate==6.2 in ./env36/lib/python3.6/site-packages (6.2+minimal)
我很困惑。它将版本6.2
和本地版本(重新分发版本)6.2+minimal
视为相同。但是为什么呢?
如果我按照相反的顺序进行操作,请先安装6.2
,然后再安装6.2+minimal
,pip将首先卸载6.2
。 pip似乎对这两个版本的处理方式有所不同。
$ pip install target/turicreate-6.2+minimal-cp36-cp36m-macosx_10_12_intel.macosx_10_12_x86_64.macosx_10_13_intel.macosx_10_13_x86_64.macosx_10_14_intel.macosx_10_14_x86_64.whl
Processing ./target/turicreate-6.2+minimal-cp36-cp36m-macosx_10_12_intel.macosx_10_12_x86_64.macosx_10_13_intel.macosx_10_13_x86_64.macosx_10_14_intel.macosx_10_14_x86_64.whl
...
Requirement already satisfied: chardet<4,>=3.0.2 in ./env36/lib/python3.6/site-packages (from requests>=2.9.1->turicreate==6.2+minimal) (3.0.4)
Installing collected packages: turicreate
Attempting uninstall: turicreate
Found existing installation: turicreate 6.2
Uninstalling turicreate-6.2:
Successfully uninstalled turicreate-6.2
Successfully installed turicreate-6.2+minimal