How to install dependencies offline

I can install the dependencies to raspberry pi os(Raspberry pi 2B) online using this command.

sudo apt-get install python3-pyqt5 libsecp256k1-0 python3-cryptography

But, If I wan to download them and install offline, how can I do that??

Both apt-get and pip have download subcommands. You can pip install wheels/sdists downloaded by pip. For apt, see this SO answer: apt get - How to download all dependencies and packages to directory - Stack Overflow

Next time, a quick Google search would give you an answer quickly

thank you,
successful download with

apt download python3-pyqt5 libsecp256k1-0 python3-cryptography

I will do more google search next time. :sweat_smile: