OpenWrt将Python安装到U盘

1、U盘挂载,具体自己百度,挂载位置为 /mnt/sda1

    

root#mount /dev/sda1 /mnt/sda1

mkdir /mnt/sda1/packages/

2、修改opkg的配置文件

echo dest usb /mnt/sda1/packages/ >> /etc/opkg.conf

3、安装python到设定的U盘目录

opkg update
opkg --dest usb install python

4、连接python目录

ln -s /mnt/sda1/packages/usr/bin/python /usr/bin/python

ln -s /mnt/sda1/packages/usr/lib/libpython2.7.so.1.0 /usr/lib/libpython2.7.so.1.0




参考:

OPENWRT安装Python到U盘

Python executable not finding libpython shared library


你可能感兴趣的:(Linux,OpenWrt)