我编写了一个名为lyrico
的python包,并将源dist和wheel上传到testpypi网站。
但是当我尝试使用以下命令从那里安装它时会出错:
pip install -i https://testpypi.python.org/pypi lyrico
cmd-prompt中记录错误:
Collecting lyrico
Using cached https://testpypi.python.org/packages/py2/l/lyrico/lyrico-0.2.5-py2-none-any.whl
Collecting mutagen (from lyrico)
Could not find a version that satisfies the requirement mutagen (from lyrico) (from versions: )
No matching distribution found for mutagen (from lyrico)
无法在我上传的滚轮中找到依赖项mutagen
。我在setup.py
中包含了依赖项:
install_requires = [
'mutagen',
'glob2',
'beautifulsoup4',
'win-unicode-console >= 0.4'
],
奇怪的是,如果去testPyPi page并使用(在cd到包含目录之后)手动下载并安装轮子:
pip install lyrico-0.2.5-py2-none-any.whl
它可以工作并安装所有依赖项。 我在Windows7系统上使用Python 2.7.11。有人可以告诉错误或错误是否可以重现?