Error: GDAL / Python 3.4.5

Probleme bei der Installation?
Antworten
flo_beyer
User
Beiträge: 3
Registriert: Donnerstag 21. Juli 2016, 07:27

(Python 3.4.5 |Anaconda 4.1.1 (64-bit)| on win32)

Hallo,
ich habe jetzt schon auf verschiedensten Wegen versuch GDAL zu installieren, aber es funktioniert einfach nicht :oops:

In der google group von Anaconda hats bisher auch nichts gebracht:
https://groups.google.com/a/continuum.i ... JP_642WQCI

Ich brauche eine GDAL-Version höher als 2.0 und bekomme diese einfach nicht lauffähig.
Mein letzter Versuch war die offizielle laut: https://pypi.python.org/pypi/GDAL/

hier meine Fehlermeldung bei der Installation mit der Windowsconsole:

Code: Alles auswählen

C:\GDAL-2.1.0>python setup.py install
running install
running bdist_egg
running egg_info
writing top-level names to GDAL.egg-info\top_level.txt
writing dependency_links to GDAL.egg-info\dependency_links.txt
writing GDAL.egg-info\PKG-INFO
reading manifest file 'GDAL.egg-info\SOURCES.txt'
writing manifest file 'GDAL.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
building 'osgeo._gdal' extension
Traceback (most recent call last):
  File "setup.py", line 320, in <module>
    **extra )
  File "C:\Anaconda3\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Anaconda3\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "C:\Anaconda3\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Anaconda3\lib\site-packages\setuptools-23.0.0-py3.4.egg\setuptools\co
mmand\install.py", line 67, in run
  File "C:\Anaconda3\lib\site-packages\setuptools-23.0.0-py3.4.egg\setuptools\co
mmand\install.py", line 109, in do_egg_install
  File "C:\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Anaconda3\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Anaconda3\lib\site-packages\setuptools-23.0.0-py3.4.egg\setuptools\co
mmand\bdist_egg.py", line 161, in run
  File "C:\Anaconda3\lib\site-packages\setuptools-23.0.0-py3.4.egg\setuptools\co
mmand\bdist_egg.py", line 147, in call_command
  File "C:\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Anaconda3\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Anaconda3\lib\site-packages\setuptools-23.0.0-py3.4.egg\setuptools\co
mmand\install_lib.py", line 10, in run
  File "C:\Anaconda3\lib\distutils\command\install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "C:\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Anaconda3\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Anaconda3\lib\distutils\command\build_ext.py", line 339, in run
    self.build_extensions()
  File "C:\Anaconda3\lib\distutils\command\build_ext.py", line 448, in build_ext
ensions
    self.build_extension(ext)
  File "C:\Anaconda3\lib\distutils\command\build_ext.py", line 503, in build_ext
ension
    depends=ext.depends)
  File "C:\Anaconda3\lib\distutils\msvc9compiler.py", line 460, in compile
    self.initialize()
  File "C:\Anaconda3\lib\distutils\msvc9compiler.py", line 371, in initialize
    vc_env = query_vcvarsall(VERSION, plat_spec)
  File "C:\Anaconda3\lib\site-packages\setuptools-23.0.0-py3.4.egg\setuptools\ms
vc9_support.py", line 52, in query_vcvarsall
  File "C:\Anaconda3\lib\distutils\msvc9compiler.py", line 287, in query_vcvarsa
ll
    raise ValueError(str(list(result.keys())))
ValueError: ['path']
Kann mir jemand helfen???
Sirius3
User
Beiträge: 17741
Registriert: Sonntag 21. Oktober 2012, 17:20

@flo_beyer: hast Du denn den passenden Visual-C Compiler installiert?
flo_beyer
User
Beiträge: 3
Registriert: Donnerstag 21. Juli 2016, 07:27

Hallo, ja ich hatte mal eine Meldung, dass ich MS Visual C++ 10.0 installieren soll.
Das hatte ich gemacht und dann ging die Installation ein schritt weiter um dann die nächsten Fehler zu bringen.

hier ein screenshot:

Bild
flo_beyer
User
Beiträge: 3
Registriert: Donnerstag 21. Juli 2016, 07:27

In order to have GDAL 2.1.0, I finally fixed my problem by a very sad way.
I uninstalled Anaconda completely and installed all packages I need on the Python 3.4.4 core.
I wrote down my steps in the case that I have to repeat the installation:
1. download Pyton 3.4.4 (32bit) ("win32-superpack-python3.4"): https://www.python.org/downloads/
2. install python
3. in windows-shell:
--> python -m pip install --upgrade pip
--> python -m pip install numpy
4. download scipy: https://sourceforge.net/projects/scipy/files/scipy/
--> install scipy
5. in windows-shell:
-->python -m pip install matplotlib
-->python -m pip install scikit-learn
-->python -m pip install docopt
6. download gdal + binaries: http://gisinternals.com/
-->stepwise instructions: http://sandbox.idre.ucla.edu/sandbox/tu ... or-windows
7. install core first
8. install binaries
9. set system variables:
- in "path" --> C:\Program Files (x86)\GDAL
- new: GDAL_DATA --> C:\Program Files (x86)\GDAL\gdal-data
- new: GDAL_DRIVER_PATH --> C:\Program Files (x86)\GDAL\gdalplugins
Antworten