问题
I have an armv7 embedded device. There is a yocto linux running on this device. There is no pip installed in it so i cannot install web3 using ..
pip install web3
How can i install web3 or any python module without using pip?
I have tried searching the recipe of web3.py but couldnt find any. Can i cross compile the web3 module? how to do that? how can build from source work for this module? what about the other dependencies required for it?
I am not a full time linux or python deveopler so please tell me about the first step i need to follow?
Thanks!
回答1:
You can just download the module (web3 folder from the repo), put it in your project directory and import it (so you can use it).
The problem is that the module can have some dependencies on other modules, so the problem is not resolved.
I think that the best solution for you is download and install pip from source.
来源:https://stackoverflow.com/questions/57039987/installing-python-modules-like-web3-without-pip-pip3