我在我的 pipenv 中安装 matplotlib 时遇到了很多困难,我相信由于非 python 依赖项。
我得到的错误是
Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of 'python' with 'pythonw'. See 'Working with Matplotlib on OSX' in the Matplotlib FAQ for more information.
这是在 MacOS X (High Sierra) 上。我已经安装libpng
freetype
并pkg-config
通过 brew 安装,但这似乎无法解决问题。
我希望这个 pipenv 能够部署到 Heroku,如果这有什么不同的话。