安装python模块(例如"Web3")没有pip/pip3? [英] Installing python modules like "Web3" without pip/pip3?

查看:303
本文介绍了安装python模块(例如"Web3")没有pip/pip3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个armv7嵌入式设备.此设备上正在运行yocto linux.没有安装任何点子,所以我无法使用..

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

如何在不使用pip的情况下安装web3或任何python模块?

How can i install web3 or any python module without using pip?

我尝试搜索web3.py的食谱,但找不到任何食谱. 我可以交叉编译web3模块吗?怎么做? 如何从源代码构建此模块? 那需要的其他依赖项又如何呢?

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?

我不是全职linux或python开发人员,所以请告诉我我需要遵循的第一步?

I am not a full time linux or python deveopler so please tell me about the first step i need to follow?

谢谢!

推荐答案

您只需下载模块(

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.

我认为,最适合您的解决方案是从源代码下载并安装pip .

I think that the best solution for you is download and install pip from source.

这篇关于安装python模块(例如"Web3")没有pip/pip3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆