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
Using cached pynq-3.0.1.tar.gz (63.0 MB)
Preparing metadata (setup.py) … error
× python setup.py 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\setup.py”, 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.
× 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!