我一直在尝试构建一个需要 Geoplot 的 python Azure 函数。但是,当我尝试部署它时,我收到一条错误消息,可能是由于 GEOS/PROJ。这是输出的一部分:
- 下载 Cartopy-0.20.1.tar.gz (10.8 MB)
- 安装构建依赖项:开始
- 安装构建依赖项:以“完成”状态完成
- 获得造轮子的要求:开始
- 错误:命令出错,退出状态为 1:
- 获得制造轮子的要求:以状态“错误”完成
- 命令:/tmp/oryx/platforms/python/3.8.12/bin/python3.8 /tmp/oryx/platforms/python/3.8.12/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process .py get_requires_for_build_wheel /tmp/tmp8ki7x3mh
- cwd:/tmp/pip-install-q5qyetv4/cartopy
- 完整输出(3 行):
- setup.py:117:用户警告:无法确定 GEOS 版本。确保您已安装 3.7.2 或更高版本,否则安装可能会失败。
- 警告.warn(
- 必须安装 Proj 8.0.0。
- 错误:命令出错,退出状态为 1:/tmp/oryx/platforms/python/3.8.12/bin/python3.8 /tmp/oryx/platforms/python/3.8.12/lib/python3.8/site-packages /pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp8ki7x3mh 检查日志以获取完整的命令输出。
如何在 Azure 函数中使用 Geoplot?