我是python的新手,試圖找出如何創建一個簡單的包,上傳到PyPI,然後下載使用PIP。試圖使用PIP來安裝我上傳到PyPI的Python包,得到「沒有找到匹配的發佈」
來源:https://github.com/shane-kercheval/kerlib
我想:蟒蛇setup.py註冊
似乎工作,結果是:
running register
running egg_info
writing top-level names to kerlib.egg-info/top_level.txt
writing requirements to kerlib.egg-info/requires.txt
writing kerlib.egg-info/PKG-INFO
writing dependency_links to kerlib.egg-info/dependency_links.txt
reading manifest file 'kerlib.egg-info/SOURCES.txt'
writing manifest file 'kerlib.egg-info/SOURCES.txt'
running check
Registering kerlib to https://pypi.python.org/pypi
Server response (200): OK
因此,對其進行測試,我創建了一個臨時目錄,創建虛擬環境(virtualenv -p python3 venv_kerlibtest
),激活虛擬環境(source venv_kerlibtest/bin/activate
),然後嘗試通過點下載(pip install kerlib
)
,並得到
Could not find a version that satisfies the requirement kerlib (from versions:)
No matching distribution found for kerlib
我也有,當我試圖清楚地並不存在,像pip install asdfasdfasdfldsf
包同樣的事情。
想法?
你的軟件包[列在pypi上](https://pypi.python.org/pypi/kerlib/1.0.1),但它是空的。你忘了運行'python setup.py sdist upload'嗎? –