How to determine the name of an egg for a Python package on Github?

若如初见. 提交于 2019-12-09 07:53:33

问题


I know I can install with

$ pip install -e git+https://git.repo/some_pkg#egg=SomePackage

but -- when I'm trying to use somebody else's package -- how do I determine what the name of the egg is?


回答1:


Look at the git repo, find the setup.py file in the root and find what is passed to the name keyword in the setup() function call.

For example, the Pyramid setup.py has:

setup(name='pyramid',

so you'd use:

$ pip install -e git+https://github.com/Pylons/pyramid.git#egg=pyramid


来源:https://stackoverflow.com/questions/21638929/how-to-determine-the-name-of-an-egg-for-a-python-package-on-github

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!