Deployment Preparation

The file structure after extracting the Origin PilotOS image deployment package is as follows:

./package
├── AutoDeploy.py           # Automated deployment script
├── build-dep.sh
├── docker-compose.yml
├── mysqlInit               # Database initialization script directory
├── pilotos:x.x.iso     # Origin PilotOS image file of version x.x
├── PilotOS-Config          # Configuration file directory
├── requirements.txt        # Python dependency list
├── Upgrade.py
└── Util.py

Extract the Deployment Package

Execute the following command to extract the deployment package (please modify according to the actual file name):

tar -zxf pilotos-x.x.tar.gz

Install Deployment Dependencies

Use pip to install the Python dependency libraries required by the deployment script:

sudo pip3 install -r requirements.txt

Note: You must use sudo pip for installation to ensure the dependency packages are installed in the system environment. You must also use sudo python when executing the automated script later, otherwise you will get an error saying the dependency packages cannot be found.