PyProj 使用 OSMnx 包时出现问题
我最近根据 此处提供的安装说明使用 Anaconda 环境(python 3.10.2)安装了 OSMnx 软件包< /a>.当我尝试将 OSMnx 包导入 Python 环境时,它会显示以下通知:
C:\Users\Reza\anaconda3\envs\ox\lib\site-packages\pyproj\__init__.py:91:
UserWarning: Valid PROJ data directory not found. Either set the path using the
environmental variable PROJ_LIB or with `pyproj.datadir.set_data_dir`.
warnings.warn(str(err))
我尝试了互联网上建议的几种解决方案,但没有一个对我有用!您有解决这个问题的想法吗?
I have recently installed the OSMnx package using Anaconda environment (python 3.10.2) based on the installation instruction provided here. Once I try to import the OSMnx package into Python environment, it shows the following notification:
C:\Users\Reza\anaconda3\envs\ox\lib\site-packages\pyproj\__init__.py:91:
UserWarning: Valid PROJ data directory not found. Either set the path using the
environmental variable PROJ_LIB or with `pyproj.datadir.set_data_dir`.
warnings.warn(str(err))
I have tried several solutions suggested on the Internet, but none of them worked for me! Do you have any ideas for resolving this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于这可能是一个很难重现的问题,并且您已经尝试了许多解决方案,但没有一个对您有效,因此我建议使用 Docker 运行 OSMnx,遵循以下简单步骤:
docker pull gboeing/osmnx
。cd path/to/workdir
。Since this could be a difficult problem to reproduce, and since you have tried many solutions but none have worked for you, I recommend running OSMnx using Docker, following these simple steps:
docker pull gboeing/osmnx
.cd path/to/workdir
.