How to successfully install pyproj and geodata?

I tried to set the geodata through i python by doing! pip install geandas, but this is not with the error "python setup.py egg_info" with error code 1, and then the path to the long directory. I read online what pyproj is required for geodata, and also tried to install it, however, no luck, a similar error. Can anyone point me in the right direction? Thanks.

By the way, if that helps, I was able to set the style of fiona and Descartes using this method.

+5
source share
6 answers

Getting work with geodata is unfortunately not easy, the problem is that the dependencies partially do not work, and you must use older versions of Fiona and GDAL. The following packages work stably:

GDAL: 1.11.2 Fiona: 1.6.0 Geopandas: 0.1.0.dev- 

To install on ubuntu:

 sudo apt-get install build-essential python-all-dev wget http://download.osgeo.org/gdal/1.11.2/gdal-1.11.2.tar.gz tar xvfz gdal-1.11.2.tar.gz cd gdal-1.11.2 ./configure --with-python make sudo make install 

In addition, some Linux distributions require updating the shared library cache after installation:

 sudo ldconfig 

Fiona and geodata can be set classic:

 sudo pip install Fiona==1.6.0 sudo pip install geopandas 

Under the windows

As @Marcus Williams notes:

Download the Windows Fiona and GDAL binaries appropriate for your python environment (32, 64 bit and 2.7 3.3 etc. (from http://www.lfd.uci.edu/~gohlke/pythonlibs/ ) and go to cmd with cd to the directory where the files are downloaded and install the .whl files with the command

 pip install filename.whl 

Finally:

 pip install geopandas 
+7
source

On Windows, I download (from http://www.lfd.uci.edu/~gohlke/pythonlibs/ ) and install the .whl files for GDAL, Fiona, pyproj, Shapely and Rtree using the command

 pip install filename.whl 

for each .whl file.

As a last step, I ran

 pip install https://github.com/geopandas/geopandas/archive/master.zip 

because I want a dev version of the geodan. The conda w / ioos method looks simpler, but I have not tried it yet.

+2
source

Thanks to the conda-forge community , geopandas is actually quite easy to install on all platforms using the conda package manager (or: its dependencies, as this is a difficulty).

If you have conda, this is simple:

 conda install -c conda-forge geopandas 

To install conda, you can install the anaconda python or miniconda distribution: http://conda.pydata.org/docs/download.html

+2
source

(Windows 10 x64, Python 3.4 +):

1.Install Visual C ++ 2010 Express ( download ). (Do not install Microsoft Visual Studio 2010 Service Pack 1)

2. Remove all redistributable Microsoft Visual C ++ 2010 packages from Control Panel \ Programs and Features. If you do not, the installation will fail with a "Fatal Installation Error" error.

then: pip install pyproj

0
source

I use Window 10 and I had to reinstall Visual C ++ 2015. Then I had to install fiona manually from here . After that I installed geopandas successfully.

0
source

After several hours of failure (with WinError 126, the error is “not supported on this platform”, etc.), I successfully installed pyproj and geodata, and this is what I did:

  • Install descartes, pandas, fiona, shapely, pyproj first, as they are necessary for geodata.

  • For descartes and pandas, installation can be done directly using 'pip install descartes' or 'pip install pandas' from the command line.

  • For fiona, shapely, pyproj:

    • Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/

    • Download the appropriate .whl for your python version (e.g. Fiona-1.7.8-cp34-cp34m-win32.whl for Python 3.4). Important : download only win32 version as win_amd64 version does not work (God knows why)

    • Install each package using 'pip install <path to download folder> Fiona-1.7.8-cp34-cp34m-win32.whl'
  • For geodata:
0
source

Source: https://habr.com/ru/post/1239000/


All Articles