CRSError:无效投影:epsg:4326:对于 geopandas

Lyl*_*iie 5 python epsg geopandas

我正在使用 anaconda 作为 geopandas。但是,每次我尝试使用 epsg:4326: 时,都会出现错误。

CRSError: Invalid projection: epsg:4326: (Internal Proj Error: proj_create: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name)
Run Code Online (Sandbox Code Playgroud)

我怎么解决这个问题?

我试过:

from functools import partial
from pyproj import Proj, transform
proj_4326 = Proj(init="epsg:4326")
proj_3857 = Proj(init="epsg:3857")
Run Code Online (Sandbox Code Playgroud)

我还尝试重置环境:

conda update anaconda
Run Code Online (Sandbox Code Playgroud)

但他们都给出了相同的 CRSError

我的版本是:

import sys
import pyproj
import geopandas
Run Code Online (Sandbox Code Playgroud)
print(sys.version)
print(pyproj.__version__)
print(geopandas.__version__)
Run Code Online (Sandbox Code Playgroud)
3.8.5 (default, Sep  4 2020, 02:22:02) 
[Clang 10.0.0 ]
2.6.1.post1
0.8.2
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

swa*_*hai 1

正确的语法如下:

proj_4326 = Proj("epsg:4326")
proj_3857 = Proj("epsg:3857")
Run Code Online (Sandbox Code Playgroud)