xz -d pyside-setup-opensource-src-5.15.2.tar.xz
tar -xvf pyside-setup-opensource-src-5.15.2.tar
①下载python3.7.9
源码包(下载地址:https://www.python.org/downloads/)并解压
xz -d Python3.7.9.tar.xz
tar -xvf Python3.7.9.tar
②编译安装
./configure --prefix=/usr/local/
sudo make
sudo make altinstall
③创建链接文件
sudo ln -sf /usr/local/python3.7.9/bin/* /usr/bin/
④检查安装版本
python3.7 -v
#卸载自带的cmake
sudo apt-get remove cmake
#安装新版本的cmake
sudo mv cmake-3.19.4-Linux-aarch64 /usr/local/cmake-3.19.4
sudo ln -sf /usr/local/cmake-3.19.4/bin/* /usr/bin/
#检查版本
cmake --version
sudo apt-get install git
①解压源码包
xz -d clang+llvm-11.01-aarch64-linux-gnu.tar.xz
tar -xvf clang+llvm-11.01-aarch64-linux-gnu.tar
②安装
sudo mv clang+llvm-11.01-aarch64-linux-gnu /usr/local/clang+llvm-11.01
sudo cp -r * /usr/local/clang+llvm-11.01/bin/ /usr/bin/
③检查是否安装成功
clang -v
python3 setup.py build --qmake=/usr/local/Qt-5.15.2/bin/qmake --build-tests --ignore-git --parallel=8
①创建setup.py
文件
touch setup.py
②编写内容如下
from setuptools import setup, find_packages,Extension
from glob import glob
from os import path
setup(
name = "PySide2",
version = "5.15.2",
packages = find_packages(),
package_dir={
'PySide2': 'PySide2',
},
package_data={
'PySide2': ['*'],
},
)
③将该文件与编译好的文件放置在同一目录下,执行下面的命令
sudo python3 setup.py