在docker中安装libmysqlclient-dev如下所示:

RUN apt-get update && \
    apt-get upgrade -y && \ 
    apt-get install -y \
	git \
	python3-dev \
	python3-setuptools \
	python3-pip \
	nginx \
	supervisor \
	libmysqlclient-dev && \
        pip3 install --upgrade -i https://pypi.doubanio.com/simple/ pip setuptools && \
  	rm -rf /var/lib/apt/lists/*

报错:

E:Package 'libmysqlclient-dev' has no installation candidate 

需要把libmysqlclient-dev更改为default-libmysqlclient-dev就ok了

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐