Poetry 安装失败,出现 EnvCommandError

时间:2021-01-20 09:09:44

标签: python macos python-imaging-library macos-big-sur python-poetry

我使用的是 macOS BigSur 11.1、poem 1.1.4 和 python 3.8.6。 在我的诗歌项目中,我尝试运行 poetry add pillow,但结果是 EnvCommandError

The headers or library files could not be found for jpeg,
    a required dependency when compiling Pillow from source.

枕头位于此处:

Pillow in /Users/<user>/.pyenv/versions/3.8.6/lib/python3.8/site-packages (8.1.0)

1 个答案:

答案 0 :(得分:0)

通过运行 brew install libjpeg 解决。