Error Installing Pynq Package on Windows: AttributeError in

Hello everyone,

I’m a PYNQ beginer, encountering an issue while trying to install the Pynq package on my Windows system. I used the command pip install pynq, but it resulted in an error during the metadata generation phase. Here’s the relevant part of the error message:

(base) C:\Users\Jayden\Desktop>pip install pynq
Collecting pynq
Using cached pynq-3.0.1.tar.gz (63.0 MB)
Preparing metadata ( … error
error: subprocess-exited-with-error

× python egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
Traceback (most recent call last):
File “”, line 2, in
File “”, line 34, in
File “C:\Users\Jayden\AppData\Local\Temp\pip-install-v8_o_0wo\pynq_1aef23d659bb49f7aafaeecd35bb680a\”, line 35, in
CPU_ARCH = os.uname()[-1]
AttributeError: module ‘os’ has no attribute ‘uname’. Did you mean: ‘name’?
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

It seems like the setup script is trying to call os.uname(), which is not available on Windows. Has anyone else faced this issue or can offer some advice on how to resolve it? Any insights or suggestions would be greatly appreciated!

Thanks in advance for your help!

PYNQ isn’t supported on windows. The PYNQ package is intended to run on AMD Zynq, Zynq Ultrascale+, RFSoC and Alveo platforms and runs on Linux based Operating Systems. For embedded boards PYNQ is delivered as a bootable Linux-based image.
What are you trying to do with PYNQ?