1.目标:把windows上python脚本运行ray集群迁移到linux上,ubuntu22.04
2.踩坑:dpkg崩溃 重装系统
3.安装ssh win上安装xftp7
unix安装open ssh服务
4.能通过xftp7传输文件到unix
5.乱码 xftp:文件 当前对话属性 选项 连接-编码
6.更改权限
7.安装python 3.10.14只能自己打包安装
https://blog.csdn.net/c858845275/article/details/141256828
wget https://www.python.org/ftp/python/3.10.14/Python-3.10.14.tgz
tar -xvf ./Python-3.10.14.tgz
cd Python-3.10.14
sudo apt update
sudo apt install -y build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev libffi-dev
./configure --prefix=/opt/gugu/python3.10.14
sudo make
sudo make install
安装完以后
/python3.10.14/bin/python3 -m pip install -r requirements.txt --trusted-host mirrors.tuna.tsinghua.edu.cn -i https://pypi.tuna.tsinghua.edu.cn/simple
8.poetry install有时会环境不全
9,ray集群linux比windows稳定
10.封装脚本