mar*_*npz 17 python installation bundle pip distribution
我正在开发一些依赖于其中一个的应用程序.我看到pip可以创建捆绑包.我的所有项目都来自一个目录.
如何为这些项目创建捆绑包然后安装在其他Ubuntu系统中?可能我应该使用virtualenv.是否有可能为他们所有人提供一个virtualenv?
vic*_*ooi 31
要创建捆绑包,请使用以下内容:
pip bundle <name of bundle>.pybundle -r requirements.txt
Run Code Online (Sandbox Code Playgroud)
其中requirements.txt包含要安装的应用程序列表.或者你可以用一个应用程序创建一个包(为什么?):
pip bundle <name of bundle>.pybundle <my app>
Run Code Online (Sandbox Code Playgroud)
然后,在另一个系统上,要安装捆绑包,您使用:
pip install <name of bundle>.pybundle
Run Code Online (Sandbox Code Playgroud)
请注意您的软件包的.pybundle扩展名 - 您需要这个以便pip识别它 - 安装没有扩展名的软件包对我不起作用.
但是pip bundle已在1.4版本中弃用,并且将在1.5版本中删除,请参阅更改日志
干杯,维克多
| 归档时间: |
|
| 查看次数: |
6337 次 |
| 最近记录: |