ERROR 1: PROJ: proj_create_from_wkt ERROR 1: PROJ: proj_create_from_database ERROR 1: PROJ: createGe

报错类型:

ERROR 1: PROJ: proj_create_from_wkt: Open of /home/wyc/software/anconda3/envs/torch_m40/share/proj failed
ERROR 1: PROJ: proj_create_from_database: Open of /home/wyc/software/anconda3/envs/torch_m40/share/proj failed
ERROR 1: PROJ: createGeodeticReferenceFrame: Open of /home/wyc/software/anconda3/envs/torch_m40/share/proj failed

 解决方法:

将proj文件所在目录进行指引,放在gdal文件中

ERROR 1: PROJ: proj_create_from_wkt ERROR 1: PROJ: proj_create_from_database ERROR 1: PROJ: createGe_第1张图片

 

import os
os.environ['PROJ_LIB'] = '/home/wyc/software/anconda3/envs/torch_m40/share/proj'
os.environ['GDAL_DATA'] = '/home/wyc/software/anconda3/envs/torch_m40/share'

你可能感兴趣的:(python,开发语言)