jenkins shell命令安装项目依赖
时间: 2023-05-20 13:05:08 浏览: 90
jenkins插件依赖关系
可以使用以下命令安装项目依赖:
```
#!/bin/bash
set -e
# Install dependencies
apt-get update && apt-get install -y \
build-essential \
python3-dev \
python3-pip \
python3-setuptools \
python3-wheel \
libpq-dev \
libffi-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
libjpeg-dev \
zlib1g-dev \
libpng-dev \
libfreetype6-dev \
libblas-dev \
liblapack-dev \
libatlas-base-dev \
gfortran \
git \
curl \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Install Python packages
pip3 install --no-cache-dir -r requirements.txt
```
这个命令会安装一些常用的依赖包,并且根据 requirements.txt 文件安装 Python 包。
阅读全文