栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

【termux】termux安装cryptography和rust

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

【termux】termux安装cryptography和rust

假设你已经安装好了python

一、安装rust

pkg install rust

二、安装cryptography

1、用国内镜像下载

pip install cryptography  -i https://pypi.tuna.tsinghua.edu.cn/simple/ 

国内镜像:

这里推荐三个非常不错的国内镜像:
https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学镜像
http://pypi.douban.com/simple/ 豆瓣镜像
http://mirrors.aliyun.com/pypi/simple/ 阿里镜像

2、下载时如果提醒This package requires Rust >=1.41.0. 则执行一,下载rust后,再重新下载cryptography

3、如果提示

error: Don't know the correct rust target for system type aarch64-unknown-linux-android. Please set the CARGO_BUILD_TARGET environment variable

是下载Rust后没有设置环境变量

export CARGO_BUILD_TARGET=aarch64-linux-android

设置后重新执行

pip install cryptography  -i https://pypi.tuna.tsinghua.edu.cn/simple/ 

4、如果提示error是github 443的错误。当前网络不能访问github,我是直接更换了termux的网络,原来用的Wi-Fi,更换成手机流量就可以了,应该也可以更换源镜像之类的,因为下载成功了就没有去研究

参考资料

https://github.com/pyca/cryptography/issues/6610

How to Install Rust on Termux? - GeeksforGeeks

Failed building wheel for Cryptography - Termux - pyca/cryptography

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/980583.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号