简体   繁体   中英

pyproj.database and pyproj.aoi import failed

I have installed the pyproj.2.6.1 version, and I am using the python3.8.8; I can't correctly import the module query_utm_crs_info from pyproj package.

Here below the code :

from pyproj import Proj,  Transformer, CRS
from pyproj.database import query_utm_crs_info

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pyproj.database'

Similar problem with AreaOfInterest

from pyproj.aoi import AreaOfInterest

and I received this message

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pyproj.aoi'

However, if I change it in to

from pyproj.transformer import AreaOfInterest

Any suggestions ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM