yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
yum -y install gcc-c++
./configure --prefix=/usr/local/python3
make & make install
ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3
pip3 install tornado -i https://pypi.tuna.tsinghua.edu.cn/simple
yum -y install python-devel
yum -y install zlib-devel
yum -y install libjpeg-turbo-devel
pip3 install pillow -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install --upgrade pip setuptools wheel -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
yum -y install libXext libSM libXrender
yum -y install mesa-libGL.x86_64
pip3 install onnxruntime -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install pyclipper -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install shapely -i https://pypi.tuna.tsinghua.edu.cn/simple
nohup python3 backend/main.py &
全部命令都在这里了
记住 这个要用python3
哪个包没有就pip3安装哪个包
安装不成功 就更新pip
so文件没有就yum安装