[英]How to use Geoplot in Azure Functions (GEOS/PROJ issue)
I've been trying to build a python Azure function which requires Geoplot.我一直在尝试构建需要 Geoplot 的 python Azure function。 However, when I try to deploy it I get an error message, likely due to GEOS/PROJ.
但是,当我尝试部署它时,我收到一条错误消息,可能是由于 GEOS/PROJ。 Here's part of the output:
这是 output 的一部分:
- Downloading Cartopy-0.20.1.tar.gz (10.8 MB)
下载 Cartopy-0.20.1.tar.gz (10.8 MB)
- Installing build dependencies: started
安装构建依赖项:开始
- Installing build dependencies: finished with status 'done'
安装构建依赖项:以“完成”状态完成
- Getting requirements to build wheel: started
获得造轮子的要求:开始
- ERROR: Command errored out with exit status 1:
错误:命令出错,退出状态为 1:
- Getting requirements to build wheel: finished with status 'error'
获得制造轮子的要求:以状态“错误”完成
- command: /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
命令:/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
cwd:/tmp/pip-install-q5qyetv4/cartopy
- Complete output (3 lines):
完整的 output(3 行):
- setup.py:117: UserWarning: Unable to determine GEOS version.
setup.py:117:用户警告:无法确定 GEOS 版本。 Ensure you have 3.7.2 or later installed, or installation may fail.
确保您已安装 3.7.2 或更高版本,否则安装可能会失败。
- warnings.warn(
警告.warn(
- Proj 8.0.0 must be installed.
必须安装 Proj 8.0.0。
- ERROR: Command errored out with exit status 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 Check the logs for full command output.
错误:命令出错,退出状态为 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 检查日志以获取完整命令 output。
How can I use Geoplot in an Azure function?如何在 Azure function 中使用 Geoplot?
However, when I try to deploy it I get an error message, likely due to GEOS/PROJ.
但是,当我尝试部署它时,我收到一条错误消息,可能是由于 GEOS/PROJ。
Here are few of workaround to check这里有一些解决方法要检查
Please make sure that you have installed GEOS/PROJ in your local.请确保您已在本地安装GEOS/PROJ 。
If you have Anaconda in your local try the below cmdlt
to install it如果您在本地有 Anaconda,请尝试以下
cmdlt
进行安装
conda install -c conda-forge cartopy
For more information please refer below links:有关更多信息,请参阅以下链接:
SO THREAD: Install Cartopy & dependencies on Windows SO THREAD: 在 Windows 上安装 Cartopy 和依赖项
MS DOC: Transform relational data with Pandas and Azure Function Apps . MS DOC: 使用 Pandas 和 Azure Function 应用程序转换关系数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.