0

Termux 中

我学会了在 Termux 中使用aptpkg来安装和管理软件包。

-$  apt install tree
-$  apt remove tree
-$  pkg install tree
-$  pkg uninstall tree
-$  pkg install mariadb
-$  dpkg, apt-get, etc...

Everything worked fine


Pydroid3终端中

所以,我只是在 Pydroid3 终端中尝试了同样的方法。

/storage/emulated/0 $  apt install tree
sh: apt: not found

/storage/emulated/0 $  pkg install tree
sh: pkg: not found

/storage/emulated/0 $  apt-get
sh: apt-get: not found

/storage/emulated/0 $  dpkg
sh: dpkg: not found

Only pip and some basic commands work here

Pydroid3 终端详细信息:

/storage/emulated/0 $  uname -a
Linux localhost 4.14.113-21094692 #1 SMP PREEMPT Thu Feb 25 17:48:28 +07 2021 aarch64 GNU/Linux

在互联网上

当我在网上搜索时,我发现可能这些命令没有安装在 Pydroid3 的 linux 发行版上。


该怎么办?

如何在 Pydroid3 终端中安装所有这些包管理器?

或者

是否有一些不同的方法可以在那里安装和管理软件包?

或者

还有其他问题吗?

注意:我的安卓设备没有root

4

1 回答 1

0

您能够运行和安装提到的那些 Termux 包,因为 Termux 开发人员为 arm 设备和其他 android cpu构建(端口)这个包,并通过Bintray上托管的存储库使它们可用。

https://dl.bintray.com/termux/termux-packages-24/{archurl}

Pydroid 本身预先构建了一些命令行包,但不托管 Termux 使用其aptpkg包管理器所做的额外存储库。

如果你有源代码,你最好自己编译这个包,因为 pydroid 带有各种命令行编译器ccc++cmakegfortran

另一种选择是使用pip包管理器为 Pydroid 提供的一些 c 库安装 Python 包装器。

万事如意 -编码快乐!

于 2021-04-28T18:09:20.160 回答