Unix平台编译
环境搭建
操作系统选择deepin15.9,也可以选择ubuntu16.04系统。然后安装软件如下:
sudo apt-get install -y build-essential \
libreadline-dev \
libffi-dev \
git \
pkg-config
安装编辑器VScode
sudo apt-get install vscode
下载源码
git clone --recurse-submodules https://github.com/micropython/micropython.git
编译
cd micropython/ports/unix
make axtls
make
运行
./micropython
执行这个命令就可以运行micropython解释器。