Python中包含tarball和egg的命名空间包 [英] Namespace package with both tarball and egg in Python

查看:73
本文介绍了Python中包含tarball和egg的命名空间包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照本教程进行制作具有名称空间的软件包.然后,我使用pip install xxx.tar.gz进行安装,并且一切都按预期进行.

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.

问题是我的环境中已经有很多具有相同名称空间的软件包,并且已经安装了easy_installeggs,并且python找不到旧的软件包了.我知道,如果我为所有旧版本的文件创建tar.gz而不是鸡蛋,则可以正常工作,但这会花费很多时间.

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 ?

谢谢

推荐答案

我只是遇到了同样的问题(我认为).看来这是一个众所周知的问题.给我的解决方案是仅对所有内容使用点子.我专门在python setup.py installpip install w/e一起使用,但没有用,我猜您的问题大致相同.

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.

这篇关于Python中包含tarball和egg的命名空间包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆