Closed lourew closed 6 years ago
You have a mix of packages from conda-forge and the defaults channel. Try creating a clean environment and installing geopandas
within that environment (see docs on creating an environment here).
You also have the extremely old and deprecated ioos
channel! Please do not use that one b/c we moved everything over to conda-forge 3 years ago!!
Hi - this is how installed it, how can i change it all
Thanks
Please see the docs that @jdmcbr recommend above and https://conda-forge.org/docs/conda-forge_gotchas.html
Hi,
I have created a new environment with;
conda create myenv2
activate myenv2
Then tried geopandas again
conda install -c conda-forge geopandas
In spyder i have run;
import geopandas as pd
The output is; `Traceback (most recent call last):
File "
File "C:\Users\lrewrie\AppData\Local\Continuum\anaconda3\envs\myenv2\lib\site-packages\geopandas__init__.py", line 4, in
File "C:\Users\lrewrie\AppData\Local\Continuum\anaconda3\envs\myenv2\lib\site-packages\geopandas\io\file.py", line 3, in
File "C:\Users\lrewrie\AppData\Local\Continuum\anaconda3\envs\myenv2\lib\site-packages\fiona__init__.py", line 69, in
File "C:\Users\lrewrie\AppData\Local\Continuum\anaconda3\envs\myenv2\lib\site-packages\fiona\collection.py", line 9, in
ImportError: DLL load failed: The specified module could not be found.`
$ conda list
`myenv2) C:\Users\lrewrie>conda list
#
alabaster 0.7.11 py_3 conda-forge asn1crypto 0.24.0 py_1 conda-forge astroid 1.6.5 py36_0 conda-forge babel 2.6.0 py_1 conda-forge backcall 0.1.0 py_0 conda-forge bleach 2.1.3 py_0 conda-forge bzip2 1.0.6 hfa6e2cd_2 conda-forge ca-certificates 2018.4.16 0 conda-forge certifi 2018.4.16 py36_0 conda-forge cffi 1.11.5 py36hfa6e2cd_1 conda-forge chardet 3.0.4 py36_3 conda-forge click 6.7 py_1 conda-forge click-plugins 1.0.3 py_1 conda-forge cligj 0.4.0 py36_0 conda-forge cloudpickle 0.5.3 py_0 conda-forge colorama 0.3.9 py_1 conda-forge cryptography 2.3 py36h74b6da3_0 conda-forge cryptography-vectors 2.3 py36_1 conda-forge curl 7.61.0 h7602738_0 cycler 0.10.0 py_1 conda-forge decorator 4.3.0 py_0 conda-forge descartes 1.1.0 py_2 conda-forge docutils 0.14 py36_0 conda-forge entrypoints 0.2.3 py36_1 conda-forge expat 2.2.5 he025d50_1 conda-forge fiona 1.7.13 py36h2fc6367_3 conda-forge freetype 2.8.1 ha63716d_1 conda-forge freexl 1.0.5 hd288d7e_1 conda-forge gdal 2.2.4 py36h2fc6367_1 conda-forge geopandas 0.4.0 py_0 conda-forge geos 3.6.2 he025d50_2 conda-forge geotiff 1.4.2 h2080a26_2 conda-forge hdf4 4.2.13 h712560f_2 hdf5 1.10.2 hbc3b0e7_1 conda-forge html5lib 1.0.1 py_0 conda-forge icc_rt 2017.0.4 h97af966_0 icu 58.2 ha66f8fd_1 idna 2.7 py36_2 conda-forge imagesize 1.0.0 py_1 conda-forge intel-openmp 2018.0.3 0 ipykernel 4.8.2 py36_0 conda-forge ipython 6.5.0 py36_0 conda-forge ipython_genutils 0.2.0 py_1 conda-forge isort 4.3.4 py36_0 conda-forge jedi 0.12.1 py36_0 conda-forge jinja2 2.10 py_1 conda-forge jpeg 9c hfa6e2cd_0 conda-forge jsonschema 2.6.0 py36_1 conda-forge jupyter_client 5.2.3 py_1 conda-forge jupyter_core 4.4.0 py_0 conda-forge kealib 1.4.9 h4380d0d_2 conda-forge keyring 13.2.1 py36_0 conda-forge kiwisolver 1.0.1 py36_1 conda-forge lazy-object-proxy 1.3.1 py36hfa6e2cd_0 conda-forge libcurl 7.61.0 h7602738_0 libgdal 2.2.4 hf00ed0c_6 conda-forge libiconv 1.15 hfa6e2cd_1 conda-forge libnetcdf 4.6.1 ha2173a7_4 conda-forge libpng 1.6.34 h7602738_1 conda-forge libpq 9.6.6 h14f23c8_0 libspatialindex 1.8.5 he025d50_2 conda-forge libspatialite 4.3.0a h582a839_21 conda-forge libssh2 1.8.0 hc4dcbb0_2 conda-forge libtiff 4.0.9 hf1753bf_1 conda-forge libxml2 2.9.8 haffccfe_2 conda-forge markupsafe 1.0 py36_0 conda-forge matplotlib 2.2.2 py36_1 conda-forge mccabe 0.6.1 py_1 conda-forge mistune 0.8.3 py36hfa6e2cd_2 conda-forge mkl 2018.0.3 1 mkl_fft 1.0.5 py36_0 conda-forge mkl_random 1.0.1 py36_0 conda-forge munch 2.3.2 py_0 conda-forge nbconvert 5.3.1 py_1 conda-forge nbformat 4.4.0 py_1 conda-forge numpy 1.14.3 py36h9fa60d3_2 numpy-base 1.14.3 py36h5c71026_0 numpydoc 0.8.0 py_1 conda-forge openjpeg 2.3.0 h25a6d84_3 conda-forge openssl 1.0.2o hfa6e2cd_1 conda-forge packaging 17.1 py_0 conda-forge pandas 0.23.4 py36h830ac7b_0 conda-forge pandoc 2.2.2 hde52d81_1 conda-forge pandocfilters 1.4.2 py_1 conda-forge parso 0.3.1 py_0 conda-forge pickleshare 0.7.4 py36_0 conda-forge pip 18.0 py36_1 conda-forge proj4 4.9.3 hcf24537_7 prompt_toolkit 1.0.15 py36_0 conda-forge psutil 5.4.6 py36_0 conda-forge psycopg2 2.7.5 py36h74b6da3_1 conda-forge pycodestyle 2.4.0 py_1 conda-forge pycparser 2.18 py_1 conda-forge pyflakes 2.0.0 py_0 conda-forge pygments 2.2.0 py_1 conda-forge pylint 1.9.2 py36_0 conda-forge pyopenssl 18.0.0 py36_0 conda-forge pyparsing 2.2.0 py_1 conda-forge pyproj 1.9.5.1 py36_0 conda-forge pyqt 5.6.0 py36h764d66f_6 conda-forge pysal 1.14.4.post2 py36_0 conda-forge pysocks 1.6.8 py36_1 conda-forge python 3.6.6 he025d50_0 conda-forge python-dateutil 2.7.3 py_0 conda-forge pytz 2018.5 py_0 conda-forge pywin32-ctypes 0.1.2 py36_0 conda-forge pyzmq 17.0.0 py36_3 conda-forge qt 5.6.2 h2639256_8 conda-forge qtawesome 0.4.4 pyh8a2030e_1 conda-forge qtconsole 4.3.1 py36_0 conda-forge qtpy 1.4.2 pyh8a2030e_1 conda-forge requests 2.19.1 py36_1 conda-forge rope 0.10.7 py_1 conda-forge rtree 0.8.3 py36_0 conda-forge scipy 1.1.0 py36h672f292_0 setuptools 40.0.0 py36_1 conda-forge shapely 1.6.4 py36hc90234e_1 conda-forge simplegeneric 0.8.1 py_1 conda-forge sip 4.18 py36_1 conda-forge six 1.11.0 py36_1 conda-forge snowballstemmer 1.2.1 py_1 conda-forge sphinx 1.7.5 py36_0 conda-forge sphinxcontrib-websupport 1.1.0 py36_0 conda-forge spyder 3.3.0 py36_2 conda-forge spyder-kernels 0.2.4 py_2 conda-forge sqlalchemy 1.2.10 py36hfa6e2cd_1 conda-forge sqlite 3.24.0 hb652765_0 conda-forge testpath 0.3.1 py36_0 conda-forge tornado 5.1 py36hfa6e2cd_1 conda-forge traitlets 4.3.2 py36_0 conda-forge urllib3 1.23 py36_1 conda-forge vc 14.1 h0510ff6_3 vs2015_runtime 15.5.2 3 wcwidth 0.1.7 py_1 conda-forge webencodings 0.5.1 py36_0 conda-forge wheel 0.31.1 py36_1 conda-forge win_inet_pton 1.0.1 py36_1 conda-forge wincertstore 0.2 py36_2 conda-forge wrapt 1.10.11 py36_0 conda-forge xerces-c 3.2.0 h44c76bb_2 xz 5.2.4 h2fa13f4_1 conda-forge zlib 1.2.11 h2fa13f4_3 conda-forge
(myenv2) C:\Users\lrewrie>`
$ conda info
active environment : myenv2 active env location : C:\Users\lrewrie\AppData\Local\Continuum\anaconda3\envs\myenv2 shell level : 2 user config file : C:\Users\lrewrie\.condarc populated config files : C:\Users\lrewrie\.condarc conda version : 4.5.9 conda-build version : 3.10.5 python version : 3.6.5.final.0 base environment : C:\Users\lrewrie\AppData\Local\Continuum\anaconda3 (writable) channel URLs : https://conda.anaconda.org/conda-forge/win-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/free/win-64 https://repo.anaconda.com/pkgs/free/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/pro/win-64 https://repo.anaconda.com/pkgs/pro/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Users\lrewrie\AppData\Local\Continuum\anaconda3\pkgs C:\Users\lrewrie\AppData\Local\conda\conda\pkgs envs directories : C:\Users\lrewrie\AppData\Local\Continuum\anaconda3\envs C:\Users\lrewrie\AppData\Local\conda\conda\envs C:\Users\lrewrie\.conda\envs platform : win-64 user-agent : conda/4.5.9 requests/2.18.4 CPython/3.6.5 Windows/10 Windows/10.0.15063 administrator : False netrc file : None offline mode : False
I have looked through forums for the past few hours and I cant figure out how to import geopandas.
Any help would be much appreciated as I really need to map :/.
Thanks!!!!
All the packages that do not have a conda-forge
in your list are coming from defaults
and that is an issue that may be avoided by followed the instructions in:
https://conda-forge.org/docs/conda-forge_gotchas.html#using-multiple-channels
and more recently:
https://github.com/conda-forge/gdal-feedstock/issues/219#issuecomment-410577468
Note that even those are not guarantee to work due to a change in the behavior on how conda deals with features. (Ping @kalefranz and @msarahan for awareness.)
Thank you for sending that link the following code worked;
conda create --override-channels -c conda-forge -n GDAL python=3 gdal
Thanks again!
Now i hope it will also work on a Mac :)
Hey any help would be much appreciated !
Issue:
Trying to import geopandas into Spyder anaconda
In spyder typed in;
import geopandas as gpd
output was;
In mac terminal typed in;
conda config --add channels conda-forge
then;
conda install geopandas
output was;
$ conda list
$ conda info