编译micropython

bbc 的 microbit 板子,其micropython代码,网址:https://github.com/bbcmicrobit/micropython

但是,按照上面的流程编译,不成功,有个地方需要注意一下,特别备注一下。

报错1:

E: Failed to fetch http://ppa.launchpad.net/pmiller-opensource/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found

解决办法:

# remove the built-in package, if installed:
sudo apt-get remove binutils-arm-none-eabi gcc-arm-none-eabi
# set up the PPA for the ARM-maintained package:
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
sudo apt-get update
# install:
sudo apt-get install gcc-arm-embedded

报错1:

pkg_resources.VersionConflict: (setuptools 20.7.0 (/usr/lib/python3/dist-packages), Requirement.parse('setuptools>=40.0'))

解决办法:

pip3 install --upgrade setuptools

报错2:

error: No module.json file. 
error: The current directory does not contain a valid module.

解决办法

$ git clone https://github.com/bbcmicrobit/micropython
$ cd micropython

猜你喜欢

转载自blog.csdn.net/gs344937933/article/details/85235017