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?
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
.