0
我正在學習如何上傳(然後再安裝)Python包,和我創建了一個包,並將其上傳到PyPI中測試服務器:pip 9.0.1甚至使用--no-cache-dir安裝舊版本? (測試服務器)
https://testpypi.python.org/pypi/mom
目前,有幾個版本,有,其中最新的是3.1.22。我上傳兩個sdist
和bdist-wheel
使用twine
:
twine upload dist/* -r testpypi --skip-existing
Uploading distributions to https://test.pypi.org/legacy/
Uploading mom-3.1.22-py3-none-any.whl
Uploading mom-3.1.22.tar.gz
在某些時候,每一個試圖安裝開始導致它試圖安裝一箇舊版本,我已經因爲刪除:
pip install -i https://test.pypi.org/pypi mom --no-cache-dir -vvv
...
Found link https://test-files.pythonhosted.org/packages/fc/48/2454ff318d4dca8b5025ab3b8e40582f9216bc08471c7f48e3c91e3f7791/
mom-3.1.17a1-py3-none-any.whl (from https://test.pypi.org/project/mom/),version: 3.1.17a1
Found link https://test-files.pythonhosted.org/packages/ba/08/2fd1d7fefc7f22085236d86ad7c5b5daee3f2a5e6a1f53bc6669463e0e33/
mom-3.1.17a1.tar.gz (from https://test.pypi.org/project/mom/), version: 3.1.17a1
會似乎--no-cache-dir
應該有所幫助,事實上我有一天這個問題,並能與--no-cache-dir
解決它,但現在問題仍然存在。
可能是什麼原因?