There is three steps to running PYNQ code from the command line:
- Make sure you are in sudo privileges (e.g.
sudo su
) - Source the pynq venv environment
source /etc/profile.d/pynq_venv.sh
- 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