

It looks like I have 2.0.0 for both gdal and libgdal, but it won't update (ie to 2.1.3, which it looks like gene has below).
REMOVE PYTHON ON MAC INSTALL
Even though the install runs fine, I also can't import gdal while in python, a similar error about libgdal.20.dylib. This is pretty common, and the normal solution is to install gdal. I'm getting the error ImportError: dlopen(/Users/scottieb/anaconda/lib/python3.5/site-packages/osgeo/_gdal.so, 2): Library not loaded: from: /Users/scottieb/anaconda/lib/libgdal.20.dylib

This is over my head currently, so I'm interested to learn where I went wrong and what exactly is going on to prevent me from retracing my steps here.Ĭleaned up my path after advice from gene.Įcho $PATH is now just /Users/scottieb/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/latest/binĮven after running conda install gdal, I can not read the shapefile. Which I suspect means gdal is not currently supported for 3.6? I tried to install gdal as before ( conda install gdal) but get the error: UnsatisfiableError: The following specifications were found to be in conflict: 2 - Locate your download and double click it. If you aren’t sure which Python version you want to install, choose Python 3. The first step, though, is to quit all Python-related processes that may be running. Some will install a folder in Applications others won’t.

The method you use to uninstall Python depends on which version of Python you’re running.
REMOVE PYTHON ON MAC HOW TO
G = nx.read_shp('Road files/geo_export_4d537b7d-a470-4eb9-b147-1d0ea89e6b60.shp') 1 Go to the Anaconda Website and choose a Python 3.x graphical installer (A) or a Python 2.x graphical installer (B). How to uninstall Python from your Mac manually. On the latest install I am resetting up and can no longer use networkx to read shapefiles import networkx as nx But somehow, in trying to install osmnx, I screwed up my libraries and decided to uninstall anaconda and start afresh. I previously had a working version on mac, using this answer. Install-record.txt -single-version-externally-managed -compile" failed with error code 1 in /private/var/folders/1v/jks7f3sj1v772xĠ48qqttmsw0000gn/T/pip-build-8hl9i7bl/gdal/ Lose() exec(compile(code, _file_, 'exec'))" install -record /var/folders/1v/jks7f3sj1v772x048qqttmsw0000gn/T/pip-yvs4yb1x-record/ When I run pip install gdal I get errors of Failed building wheel for gdalĮrror: command 'gcc' failed with exit status 1Ĭommand "/Users/scottieb/anaconda/bin/python -u -c "import setuptools, tokenize _file_='/private/var/folders/1v/jks7f3sj1v772x048q I am stuck trying to install gdal, running python3.6 on a Mac.
