openwrt安装python3和django
(2020-02-14 17:02:53)| 分类: openwrt |
首先注意安装python3需要扩充你的存储,参照http://blog.sina.com.cn/s/blog_73dac6b50102zth6.html这个文章。
最好opkg再换为国内的源,例如
阿里巴巴(https://developer.aliyun.com/mirror/)的等等。
然后
opkg install python3
opkg install pip
更换pip为国内的源
先升级 pip 到最新的版本 (>=10.0.0)
pip install pip -U
如果升级pip,可以临时使用本镜像站来升级 pip:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip
-U
后进行pip源配置:
pip config set global.index-url
https://pypi.tuna.tsinghua.edu.cn/simple
再安装django
pip install django
测试django
django-admin startproject HelloWorld

加载中…