Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个程序,该程序依赖于已安装第三方软件包的用户。有什么方法可以将这些软件包包含在我的安装程序中,还是必须单独安装它们?如果重要的话,我在 2.7 中使用 distutils。
这取决于第 3 方包的复杂性。如果它是纯 python,您可以简单地将它与您的其余代码捆绑在一起。如果它需要更复杂的安装过程,您可能需要用户自己安装。