Lxn-Chan!

(~ ̄▽ ̄)→))* ̄▽ ̄*)o

OpenWRT安装Python3相关命令和依赖包

  1. 首先确认剩余空间,opt文件夹要有足够的空间
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
root@XiaoQiang:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 130255 102809 20893 83% /
none 126972 0 126972 0% /dev
tmpfs 127580 6200 121380 5% /tmp
/dev/sda1 130255 102809 20893 83% /
tmpfs 127580 6200 121380 5% /extdisks
/dev/sda3 267728 83116 171096 33% /data
/dev/sda4 975918408 489647556 486168452 50% /userdisk
/dev/sda3 267728 83116 171096 33% /etc
/dev/sda1 130255 102809 20893 83% /rom
/dev/sda4 975918408 489647556 486168452 50% /userdisk/appdata/-/lib
tmpfs 128 0 128 0% /userdisk/appdata/-/tmp
/dev/sda4 975918408 489647556 486168452 50% /userdisk/appdata/-/bin
/dev/sda4 975918408 489647556 486168452 50% /userdisk/appdata/-/userdata
devtmpfs 126972 0 126972 0% /userdisk/appdata/-/dev
tmpfs 127580 6200 121380 5% /etc/sysapihttpd/miwifi-webinitrd.conf
/dev/sda4 975918408 489647556 486168452 50% /opt
  1. 更新包列表
1
root@XiaoQiang:~# opkg update
  1. 安装主要组件
1
2
3
4
5
6
7
# 安装主要组件
root@Openwrt:/mnt# opkg install python3-base
root@Openwrt:~# opkg install python3-pip
root@Openwrt:~# opkg install python3

# 换源(可选)
root@Openwrt:~# /usr/bin/python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
  1. 依赖包(供离线安装参考)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
libffi.
libtirpc.
python3-light.
python3-email.
python3-urllib.
python3-pydoc.
python3-cgi.
python3-cgitb.
python3-decimal.
python-pip-conf.
libexpat.
python3-xml.
python3-unittest.
python3-ncurses.
python3-ctypes.
python3-logging.
python3-multiprocessing.
python3-readline.
libgdbm.
python3-gdbm.
libsqlite3.
python3-sqlite3.
python3-distutils.
python3-openssl.
libdb47.
python3-dbm.
python3-codecs.
python3-asyncio.
python3-lzma.
python3.
python3-pkg-resources.
python3-setuptools.
python3-pip.

 简单说两句



联系站长 | 服务状态 | 友情链接

备案号:辽ICP备19013963号

萌ICP备 20219421 号

中国互联网违法和不良信息举报中心

架构版本号:8.1.6 | 本站已全面支持IPv6

正在载入运行数据(1/2)请稍后...
正在载入运行数据(2/2)请稍后...

Copyright 2024 LingXuanNing, All rights reserved.