无法安装geopandas

时间:2020-10-13 14:18:48

标签: conda geopandas

我已经尝试了好几种方法,但是当我想执行使用geopandas的代码时,会收到消息“没有模块名称为“ geopandas””。

因此,我也尝试通过conda在虚拟环境中进行安装,但不走运:

conda create -n geo  -c conda-forge  python=3.6 geopandas <br/> 
conda activate geo <br/> 
python -c "import geopandas" <br/> 
"Traceback (most recent call last): <br/> 
  File "<string>", line 1, in <module> <br/> 
  File "/home/karolina/anaconda3/envs/geo/lib/python3.6/site-packages/geopandas/__init__.py", line 7, in <module> <br/> 
    from geopandas.io.file import _read_file as read_file  # noqa <br/> 
  File "/home/karolina/anaconda3/envs/geo/lib/python3.6/site-packages/geopandas/io/file.py", line 7, in <module><br/> 
    import fiona<br/> 
  File "/home/karolina/anaconda3/envs/geo/lib/python3.6/site-packages/fiona/__init__.py", line 86, in <module><br/> 
    from fiona.collection import BytesCollection, Collection<br/> 
  File "/home/karolina/anaconda3/envs/geo/lib/python3.6/site-packages/fiona/collection.py", line 11, in <module><br/> 
    from fiona.ogrext import Iterator, ItemsIterator, KeysIterator<br/> 
ImportError: libnsl.so.1: cannot open shared object file: No such file or directory"

当我尝试将其安装到计算机上时,发生了冲突,并且正在寻找不兼容的软件包。

它正在我的Jupyter Notebook中工作,我不知道发生了什么。

0 个答案:

没有答案