Hi!
I would like to run a small python app directly on the server. However, python is not installed on the system, which kind of came as a surprise to me. So, two questions, I guess:
- Would it harm to “just” install it? The overall list of installed packages is pretty large, so I fear that it might break something …
apt-get install python3 python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
binutils binutils-aarch64-linux-gnu binutils-common build-essential cpp cpp-8 dh-python dpkg-dev fakeroot file g++ g++-8 gcc gcc-8 gir1.2-glib-2.0 libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libdpkg-perl libexpat1-dev libfakeroot libfile-fcntllock-perl
libgcc-8-dev libgdbm-compat4 libgdbm6 libgirepository-1.0-1 libglib2.0-0 libglib2.0-data libgomp1 libisl19 libitm1 liblsan0 libmagic-mgc libmagic1 libmpc3 libmpdec2 libmpfr6
libperl5.28 libpython3-dev libpython3-stdlib libpython3.7 libpython3.7-dev libpython3.7-minimal libpython3.7-stdlib libstdc++-8-dev libtsan0 libubsan1 linux-libc-dev make manpages
manpages-dev mime-support patch perl perl-modules-5.28 python-pip-whl python3-asn1crypto python3-cffi-backend python3-crypto python3-cryptography python3-dbus python3-dev
python3-distutils python3-entrypoints python3-gi python3-keyring python3-keyrings.alt python3-lib2to3 python3-minimal python3-pkg-resources python3-secretstorage python3-setuptools
python3-six python3-wheel python3-xdg python3.7 python3.7-dev python3.7-minimal shared-mime-info xdg-user-dirs xz-utils
Suggested packages:
binutils-doc cpp-doc gcc-8-locales debian-keyring gcc-8-doc libstdc++6-8-dbg gcc-multilib autoconf automake libtool flex bison gdb gcc-doc libgcc1-dbg libgomp1-dbg libitm1-dbg
libatomic1-dbg libasan5-dbg liblsan0-dbg libtsan0-dbg libubsan1-dbg libmpx2-dbg libquadmath0-dbg glibc-doc git bzr libstdc++-8-doc make-doc man-browser ed diffutils-doc perl-doc
libterm-readline-gnu-perl | libterm-readline-perl-perl libb-debug-perl liblocale-codes-perl python3-doc python3-tk python3-venv python-crypto-doc python-cryptography-doc
python3-cryptography-vectors python-dbus-doc python3-dbus-dbg gnome-keyring libkf5wallet-bin gir1.2-gnomekeyring-1.0 python-secretstorage-doc python-setuptools-doc python3.7-venv
python3.7-doc binfmt-support
The following NEW packages will be installed:
binutils binutils-aarch64-linux-gnu binutils-common build-essential cpp cpp-8 dh-python dpkg-dev fakeroot file g++ g++-8 gcc gcc-8 gir1.2-glib-2.0 libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0 libdpkg-perl libexpat1-dev libfakeroot libfile-fcntllock-perl
libgcc-8-dev libgdbm-compat4 libgdbm6 libgirepository-1.0-1 libglib2.0-0 libglib2.0-data libgomp1 libisl19 libitm1 liblsan0 libmagic-mgc libmagic1 libmpc3 libmpdec2 libmpfr6
libperl5.28 libpython3-dev libpython3-stdlib libpython3.7 libpython3.7-dev libpython3.7-minimal libpython3.7-stdlib libstdc++-8-dev libtsan0 libubsan1 linux-libc-dev make manpages
manpages-dev mime-support patch perl perl-modules-5.28 python-pip-whl python3 python3-asn1crypto python3-cffi-backend python3-crypto python3-cryptography python3-dbus python3-dev
python3-distutils python3-entrypoints python3-gi python3-keyring python3-keyrings.alt python3-lib2to3 python3-minimal python3-pip python3-pkg-resources python3-secretstorage
python3-setuptools python3-six python3-wheel python3-xdg python3.7 python3.7-dev python3.7-minimal shared-mime-info xdg-user-dirs xz-utils
0 upgraded, 89 newly installed, 0 to remove and 0 not upgraded.
But then again, python is a pretty standard package, so it should be unproblematic, shouldn’t it?
- Is there a better way to directly run a python app? Maybe in a docker container, but docker isn’t installed, either.
The list of dependencies is much shorter, though – would that be safer?
apt-get install docker
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libglib2.0-0 libglib2.0-data libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 shared-mime-info wmdocker xdg-user-dirs
The following NEW packages will be installed:
docker libglib2.0-0 libglib2.0-data libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 shared-mime-info wmdocker xdg-user-dirs
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
What are your thoughts on this?
Cheers