Linux系统内Python打包程序pyinstaller

1、sudo apt install python3-pip
2、sudo apt update
3、sudo apt install make build-essential libssl-dev zlib1g-dev liblzma-dev
4、sudo apt install libbz2-dev libreadline-dev libsqlite3-dev llvm
5、sudo apt install libncurses5-dev libncursesw5-dev xz-utils tk-dev
6、sudo pip3 install pyinstaller

inux将python3设为默认的 python
sudo rm -rf /usr/bin/python
删除后再建立新的链接关系:
sudo ln -s /usr/bin/python3 /usr/bin/python
如果想还原回原python2.7,只需
sudo rm -rf /usr/bin/pythonsudo ln -s /usr/bin/ptyhon2.7 /usr/bin/python

临时打开串口权限:sudo chmod 666 /dev/ttyS0

你可能感兴趣的:(python,linux,开发语言)