Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Mac geopandas导入错误_Python_Macos_Geopandas - Fatal编程技术网

Python Mac geopandas导入错误

Python Mac geopandas导入错误,python,macos,geopandas,Python,Macos,Geopandas,我在Mac中导入Geopanda时遇到了一些问题。我通过conda命令安装了它: conda install -c conda-forge geopandas 尝试通过导入后,出现以下错误: ImportError Traceback (most recent call last) <ipython-input-2-e508418be6dd> in <module>() 1 import panda

我在Mac中导入Geopanda时遇到了一些问题。我通过conda命令安装了它:

conda install -c conda-forge geopandas
尝试通过导入后,出现以下错误:

ImportError                               Traceback (most recent call last)
<ipython-input-2-e508418be6dd> in <module>()
      1 import pandas as pd
----> 2 import geopandas as gpd
      3 get_ipython().magic('matplotlib inline')

/anaconda/lib/python3.6/site-packages/geopandas/__init__.py in <module>()
      2 from geopandas.geodataframe import GeoDataFrame
      3 
----> 4 from geopandas.io.file import read_file
      5 from geopandas.io.sql import read_postgis
      6 from geopandas.tools import sjoin

/anaconda/lib/python3.6/site-packages/geopandas/io/file.py in <module>()
      1 import os
      2 
----> 3 import fiona
      4 import numpy as np
      5 

/anaconda/lib/python3.6/site-packages/fiona/__init__.py in <module>()
     67 from six import string_types
     68 
---> 69 from fiona.collection import Collection, BytesCollection, vsi_path
     70 from fiona._drivers import driver_count, GDALEnv
     71 from fiona.drvsupport import supported_drivers

/anaconda/lib/python3.6/site-packages/fiona/collection.py in <module>()
      7 
      8 from fiona import compat
----> 9 from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
     10 from fiona.ogrext import Session, WritingSession
     11 from fiona.ogrext import (

ImportError: dlopen(/anaconda/lib/python3.6/site-packages/fiona/ogrext.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libxerces-c-3.1.dylib
  Referenced from: /anaconda/lib/libgdal.20.dylib
  Reason: image not found
遇到相同的错误,所以我尝试用conda卸载,用pip安装。我也犯了同样的错误


然后我试着用康达锻造菲奥娜,然后和PIP一起安装,但它没有给我带来什么,现在我被卡住了。有什么想法吗?

我认为菲奥纳的康达锻造原料可能有问题:

几天前我也遇到过同样的问题,但现在似乎已经解决了。你再试过吗

conda update conda