PIP是否安装了没有setup.py文件的Python软件包? [英] PIP install a Python Package without a setup.py file?

查看:289
本文介绍了PIP是否安装了没有setup.py文件的Python软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚如何使用. (有问题的软件包为 http://code.google.com/p/django-google -analytics/)

I'm trying to figure out how I can install a python package that doesn't have a setup.py file with pip. (package in question is http://code.google.com/p/django-google-analytics/)

通常,我只会从存储库中将代码签出并符号链接到我的站点包中,但是我试图将整个环境冻结在 pip 要求文件,以便于部署和测试.

Normally I would just checkout the code from the repo and symlink into my site-packages, but I'm trying to get my whole environment frozen into a pip requirements file for easy deployment and testing.

有什么想法吗?

推荐答案

您不能. PIP将安装Python软件包.那不是Python包.我听说Django社区通常不会提供太多软件包,这会使您想做的事情变得棘手.但这可能是错误的.

You can't. PIP installs Python packages. That's not a Python package. I've heard that the Django community in general doesn't make much packages, which makes things like what you are trying to do tricky. But that could be wrong.

如果您想冻结环境,则可能需要研究 Buildout .在这种情况下,其他选项是使用svn:external.

If you want to freeze your environment you might want to look into Buildout. Other options in this case is to use an svn:external.

这篇关于PIP是否安装了没有setup.py文件的Python软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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