Namespace package with both tarball and egg in Python

爷,独闯天下 提交于 2019-12-02 20:17:27

问题


I've followed this tutorial to make a package with namespace. Then I use pip install xxx.tar.gz to install and everything works like expect.

The problem is that my environment has already a lots of packages with the same namespace and installed with easy_install and eggs, and python can not find the old packages anymore. I understand that if I create tar.gz instead of eggs for all the olds pacakges, it would work fine but this is a lots of time to spend.

How can I make the new and old packages work together with two different installation methods ?

Thanks


回答1:


I just ran into the same problem (I think). It appears that this is a well known problem. The solution given to me was to just use pip for everything. I was specifically using python setup.py install alongside pip install w/e and it wasn't working, I'm guessing yours is roughly the same problem.



来源:https://stackoverflow.com/questions/27545177/namespace-package-with-both-tarball-and-egg-in-python

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