【问题标题】:example of python distutils package code that depends on other modules?依赖于其他模块的 python distutils 包代码示例?
【发布时间】:2011-12-16 21:28:51
【问题描述】:

有人可以指出一个使用 distutils 制作 Python 包的简单示例,该包依赖于安装的 other python 模块,例如numpy(特定版本)和 scipy?我在网上找到了非常简单的示例,但找不到依赖于已知包的示例。当用户安装我使用 setup.py install 定义的包时,我想找到为用户安装此类依赖项的最简单的系统。谢谢。

【问题讨论】:

    标签: python installation distribution distutils package-managers


    【解决方案1】:

    Distutils 本身不安装依赖项。您需要使用 Distutils 的附加组件,例如 pip 或普通的 Distribute/setuptools

    【讨论】:

    猜你喜欢
    • 2013-01-26
    • 2013-04-17
    • 2021-01-23
    • 1970-01-01
    • 2019-09-30
    • 1970-01-01
    • 1970-01-01
    • 2016-03-13
    • 2021-04-27
    相关资源
    最近更新 更多