Run python scripts in Pynq Environment

Hi @DiogoBaptista

There is three steps to running PYNQ code from the command line:

  1. Make sure you are in sudo privileges (e.g. sudo su)
  2. Source the pynq venv environment source /etc/profile.d/pynq_venv.sh
  3. Source the xrt environment source /etc/profile.d/xrt_setup.sh

You should now be in the right environment to run PYNQ code.

You could put both source commands into a shell script which you can run whenever you want.

Thanks,

Josh

2 Likes