Close

Installing Keras, Tensorflow, Jupyter, and Coral Software

A project log for TensorFlow Processing Unit investigation

What is it all about?

keithKeith 08/29/2022 at 21:230 Comments

2020-08-12

Software failed to install on my Linux Mint 17.3 drive, perhaps too out of date?

2022-08-29

Now on Linux Mint 20. Project reactivated. In the software manager, searching for "TensorFlow" returns "Python3-keras" so presumably TensorFlow is part of Keras. Installed without problems.

In a console,

pip install tensorflow

 reports nothing to do, so I'll assume it is installed.

Next, installed Jupyter-notebook without problems. The Launch button does nothing. Need to use the command line:

jupyter notebook

 which returns the error 

ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/keith/.local/lib/python3.8/site-packages/markupsafe/__init__.py)

 Googling this error returns the suggestion to enter this command:

pip install -U flask

This gets jupyter working.

I then tried installing the Tensorflow Accelerator software from Coral

https://coral.ai/docs/accelerator/get-started/#1-install-the-edge-tpu-runtime

echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install libedgetpu1-std

No errors reported.

Now installing the pycoral library as per:
https://coral.ai/docs/accelerator/get-started/#2-install-the-pycoral-library 

sudo apt-get install python3-pycoral

No errors. Looks like  success.

There is an option to run at 'full speed', which is advised against as it will get very hot. I presume the chip runs slower to keep within the limited heat dissipation capacity of the package. However, I have bolted my dongles onto large pieces of aluminium for passive heat-sinking. If they still run hot I can find larger heat sinks, or even fit fans if required.

2022-09-01

Overnight, it has stopped working, with the error:

Jupyter Notebook – 500 : Internal Server Error

Googling solutions, https://clay-atlas.com/us/blog/2021/09/14/jupyter-notebook-en-internal-server-error/
s
ays to type:

pip3 install --upgrade --user nbconvert

This fixes the problem. 

Discussions