You can't use
apt or similar package managers to install programs on
PythonAnywhere, because you do not have root access to the machine where your
code runs -- in particular, you can't use the
However, if you want to install a Linux tool that is written in C into your home directory, it's often possible.
Specifically, if the tool that you want to install has instructions on how to compile it from source, and the steps documented by the tool to do that are:
- Get the source (either by downloading it from a link and using
tarto unpack it, or by using
cdinto the source directory
sudo make install
...then you can often get it to work by following those steps, but adding
--prefix=/home/$HOME/.local to the
./configure line, and then missing
sudo on the install line.