我在我的网站上放置了一些鸡蛋来创建我自己的包索引:
现在我想在我的构建配置中使用此索引:
[buildout]
...
find-links = ...
http://mnowotka.kei.pl/eggs/
要使该索引中的一些包可用于我的本地 python 解释器:
[python]
...
eggs = ...
dashboard-common
但是,在执行 ./bin/buildout 时,我收到以下错误:
Couldn't find index page for 'dashboard-common' (maybe misspelled?)
Getting distribution for 'dashboard-dommon'.
While:
Installing python.
Getting distribution for 'dashboard-common'.
Error:
Couldn't find a distribution for 'dashboard-common'.
你知道这里可能出了什么问题吗?
最佳答案
你的蛋叫http://mnowotka.kei.pl/eggs/dashboard_common-0.5-py2.7.egg ,因此带有下划线。仪表板_通用。您正在使用破折号查询仪表板通用。
这两个不匹配,这就是问题所在。查看 setup.py 并将包的名称调整为仪表板通用。包本身,即您导入的内容,可以保留dashboard_common。
关于python - 自己的包索引有问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9208469/