Skip to main content

通过 apt 安装 Python 包

项目描述

apipt

APIPT是一个包,apt如果可能,它会安装 Python 包,否则使用pip.

最好使用apt.

例子

假设我们要安装一些软件包:

可以通过以下方式安装的 Python 包apt

  • 麻木的
  • 要求

不能:

  • 法泰
  • 张量流

普通套餐:

  • 绑定9
  • 卷曲

让我们运行apipt install numpy requests fastai tensorflow bind9 curl

root@Ubuntu ~# apipt install numpy requests fastai tensorflow bind9 curl
Running: apt install python3-numpy python3-requests bind9 curl
Press any key if no [y/N] prompt.

...

After this operation, 27.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y

...

Running: pip install fastai tensorflow
Press any key if no [y/N] prompt.


Collecting fastai
...

如上图所示,apipt自动将这些包分成两组。

对于一组,它调用apt install python3-numpy python3-requests bind9 curl,而对于另一组,pip install fastai tensorflow

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

apipt-0.1.1.0.tar.gz (3.7 kB 查看哈希

已上传 source

内置分布

apipt-0.1.1.0-py3-none-any.whl (4.8 kB 查看哈希

已上传 py3