无法导入cartopy

发布于 2025-01-11 23:46:46 字数 488 浏览 2 评论 0原文

当我尝试导入 cartopy 时出现此错误:ImportError: libproj.so.25: 无法打开共享对象文件:没有这样的文件或目录

cartopy 需要 PROJ 8.0.0 或更高版本,我安装了 PROJ 9.0.0。 proj 位于 /usr/local/lib,我尝试通过运行 shell 命令将路径添加到 LD_LIBRARY_PATH:export LD_LIBRARY_PATH=/lib:/usr/ lib:/usr/local/lib

指定的所有其他依赖项 这里很满意。

操作系统:Ubuntu 18.04

Python 版本:3.8

预先感谢您的帮助!

Getting this error when I try to import cartopy: ImportError: libproj.so.25: cannot open shared object file: No such file or directory.

cartopy requires PROJ 8.0.0 or higher and I have PROJ 9.0.0 installed. proj is at /usr/local/lib, and I tried adding the path to LD_LIBRARY_PATH by running the shell command: export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib

All the other dependencies specified here are satisfied.

OS: Ubuntu 18.04

Python version: 3.8

Thanks in advance for the help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文