PYNQ: PYTHON PRODUCTIVITY

Installing pynq package in an ubuntu container (Docker)

Hi.

I’m running Docker on a Ultra96-V2 board with PYNQ v2.6 image, based on an ubuntu image I am trying to install pynq package to access the programmable logic from inside the container. I have tried instead of just pip installing the pynq package to run the compilation of the DPU-PYNQ repository without success.

I end up running into errors every time, libraries, missing apps, etc. This is the current Dockerfile I’m trying to build.

FROM ubuntu

RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y apt-utils python3-dev sudo build-essential python3-pip

RUN sudo pip3 install --upgrade --upgrade-strategy only-if-needed pynq

CMD ["bash"]

Is there any example on how to do this in an easy way or any advice?