Pynq z1 internet connection

hello, I am connecting my pynq z1 card, I connect it to the pc and login to the interface, but when installing the package with the pip3 install command, I get an error that there is no internet connection.

Your board is only connected to your computer, not to the internet.

You can find some previous posts related to this. E.g.

Can you connect your board to your network using an Ethernet cable?

If you only need to pip install one package, you can sometimes download the github repo, copy to your board and install locally.

E.g. pip install ./path/to/local/copy/of/repo

Cathal

for example learn sticky library when installing root@pynq:/# pip install -U scikit.learn
scikit.learn collection
Using cached scikit-learn-1.1.2.tar.gz (7.0 MB)
Loading build dependencies…/
it stays as I’m using pynq z1 v2.7 I tried to install it on github but the error I got in that part is Installing build dependencies … done
Getting requirements to build wheel … error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
Traceback (most recent call last):
File “/usr/local/share/pynq-venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py”, line 363, in
main()
File “/usr/local/share/pynq-venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py”, line 345, in main
json_out[‘return_val’] = hook(**hook_input[‘kwargs’])
File “/usr/local/share/pynq-venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py”, line 130, in get_requires_for_build_wheel
return hook(config_settings)
File “/usr/lib/python3/dist-packages/setuptools/build_meta.py”, line 147, in get_requires_for_build_wheel
return self._get_build_requires(
File “/usr/lib/python3/dist-packages/setuptools/build_meta.py”, line 128, in _get_build_requires
self.run_setup()
File “/usr/lib/python3/dist-packages/setuptools/build_meta.py”, line 249, in run_setup
super(_BuildMetaLegacyBackend,
File “/usr/lib/python3/dist-packages/setuptools/build_meta.py”, line 143, in run_setup
exec(compile(code, file, ‘exec’), locals())
File “setup.py”, line 7, in
import pynq_sklearn
File “/tmp/pip-req-build-44_1o_gn/pynq_sklearn/init.py”, line 2, in
from .base import PynqMixin
File “/tmp/pip-req-build-44_1o_gn/pynq_sklearn/base.py”, line 1, in
from pynq import Overlay, PL, Xlnk
ModuleNotFoundError: No module named ‘pynq’
[end of output]

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

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

Hi @Mehmet_Cinar,

Please see this topic for a solution

Mario

i got the same error again

@marioruiz help me please

Try from inside a Jupyter Lab terminal, that terminal has the right environment.

It doesnt work. Thank you.

Are you getting the same error? Is you board connected to the internet?

Cathal

yes