安装Pillow失败,无libjpeg包
安装pillow遇到报错
The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation/basic-installation.html
网上说要安装 libjpeg
sudo apt-get update
sudo apt-get install libjpeg-dev zlib1g-dev
但我没有sudo权限,遂选择conda安装(安装第一个即可)
conda install -c conda-forge libjpeg-turbo
再次安装Pillow时,遇见gcc相关报错,升级gcc
conda install -c conda-forge gcc_linux-64 gxx_linux-64
再次安装Pillow则成功