PIP 在没有 setup.py 文件的情况下安装 Python 包? [英] PIP install a Python Package without a setup.py file?

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

问题描述

我想弄清楚如何安装一个没有 setup.py 文件和 pip.(有问题的包是 http://code.google.com/p/django-google-分析/)

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/)

通常我只会将代码从 repo 和符号链接签出到我的站点包中,但我试图让我的整个环境冻结到 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天全站免登陆