The Banana PI Zero has only 500 MB Ram. Armbian keeps the /tmp directory in a Ram Disk which has only 197884 bytes available: So I ended up with the following errors when I tried to install pyspark, numpy or other bigger libraries:

  • Memory Error [Errno 28] No space left on device
  • socket.timeout: The read operation timed out

It seems to be more reliable to install the library with apt if it is available:

apt install python3-numpy python3-pandas -y

I tried to pip3 install with the following options

  • –no-cache or –cache-dir=/home/pschatzmann/tmp
  • –build-dir=/home/pschatzmann/tmp

The following however was working much better:

export TMPDIR=/home/pschatzmann/tmp
pip3 install pyspark --timeout=0

Later on I was running into problems when I wanted to build Jupyterlab:

jupyter lab build

It was failing with a wrong error message telling me: Please install nodejs >=10.0.0 before continuing. Executing nodejs –version however was giving v12.18.3.
The root cause was, that npm –version was giving allocation failure errors. The following setting was helping:

export NODE_OPTIONS="--max_old_space_size=10240"


Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *