当前位置: 首页 > 图灵资讯 > 行业资讯> python distribute是什么

python distribute是什么

发布时间:2025-09-19 14:23:31

easy___install, setuptools, 还有pip, distribute,那么这些工具有什么关系呢?看下图就明白了:

相关推荐:Python教程

可见distribute是setuptols的替代方案,pip是easy_install的替代方案。

Distribute提供了一个安装python模块的框架。您系统中的每个python解释器都需要自己的distribute。您可以在这里找到最新版本的distribute://pypi.python.org/pypi/distribute。

Distribute是标准库disutils模块的增强。我们知道disutils主要用于更容易的包装和分发,尤其是依赖其他包装的包装。

由于Setuptols包不再维护,Distribute被创建。

通过distribute_setup.py 安装Distribute的脚本也可以通过easy_install, pip,安装源文件,但使用distribute_setup.Py安装是最简单最流行的方式。

#wgethttps://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip--no-check-certificate
#unzipdistribute-0.7.3.zip
#cddistribute-0.7.3
#python2.7setup.pyinstall

或者:

#wgethttp://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz
#tarxfdistribute-0.6.35.tar.gz
#cddistribute-0.6.35
#python2.7setup.pyinstall

这将产生一个脚本/usr/local/bin/easy_install-2.7 ,你可以用它来安装python 2.7 模块。将安装的模块放置在模块中 /usr/local/lib/python2.7/site-packages/目录中。

相关文章

Python中的变量与常量

Python中的变量与常量

2025-09-19
python和c语言的区别是什么

python和c语言的区别是什么

2025-09-19
python3怎么下载

python3怎么下载

2025-09-19
python程序如何工作

python程序如何工作

2025-09-19
python pytz是什么

python pytz是什么

2025-09-19
python编程软件有什么

python编程软件有什么

2025-09-19