安装pillow报错:Ubuntu下安装错误ERROR: Failed building wheel for pillow
sudo apt install libjpeg-dev zlib1g-dev
**
基础镜像
FROM nvcr.io/nvidia/l4t-base:r32.4.4
# 维护者
MAINTAINER zeleling@163.com
ADD /aihub /tensorrt
# 依赖包
RUN apt-get update
RUN apt-get -y install python3-setuptools
# 安装pip3
RUN apt -y install python3-pip
# 安装 numpy==1.13.3
RUN pip3 install numpy==1.13.3
# 安装pillow
RUN apt-get update
RUN apt -y install libjpeg-dev zlib1g-dev
RUN pip3 install pillow
# 安装pycuda
WORKDIR /tensorrt
RUN pip3 install pycuda==2019.1.2
## 运行转换程序
RUN pip3 install protobuf
RUN apt -y install python3-dev python3-pip python3-venv
RUN apt-get -y install python-pip
RUN pip3 install tensorflow-gpu
CMD [“python3”, “/usr/lib/python3.6/dist-packages/uff/bin/convert_to_uff.py”, “—input-file /tensorrt/frozen-models/frozen_inference_graph.pb”, \
“-o”, “/tensorrt/frozen-models/model_uff.uff”,”-p”,”config.py”]
# 执行
# CMD [“python3”, “transform.py”]