41
votes
Getting ArcPy to work with Anaconda?
This tutorial shows you how to set up conda environment to work with ArcGIS 10.4 and ArcGIS Pro 1.3.
Workflow to set up Anaconda with ArcGIS 10.4
Install Anaconda without fouling the Windows ...
36
votes
Accepted
Import error: no module named _gdal_array
Make sure you have numpy installed before you attempt to install the GDAL Python bindings; without numpy, it appears the _gdal_array native code will not be installed.
If you ended up in this ...
14
votes
Accepted
GeoPandas to_file() saves GeoDataFrame without coordinate system
I have come across this behavior before.
You need to explicitly pass the well known text (crs_wkt) string to the to_file() method. The string will then get passed to fiona.open(), which writes out ...
13
votes
Accepted
Using spyder as Python IDE with ArcGIS Pro?
I've found it easier to just install spyder into each python environment rather than trying to get a single spyder install to work with multiple environments.
To install spyder in ArcGIS Pro, open ...
11
votes
Does QGIS work with Anaconda?
I have miniconda 4.8.3 installed on a Linux Mint 19.3 system and, following some instructions reported on this blog and on the official conda-forge channel of Anaconda I very easily and effectively ...
10
votes
Accepted
Cannot install a version of GDAL via Anaconda that permits reading BigTIFFs
Issues:
The Anaconda default gdal may be built without BigTIFF support. If I create a non conda-forge env, i.e conda create -n testgdal gdal I can reproduce the md['DMD_CREATIONOPTIONLIST'].find('...
10
votes
Accepted
Installing GDAL with Anaconda
There seems to be an incompatibility between the latest version of conda and vs2015_runtime and conda-forge gdal.
If I create a conda-forge env and specify vs2015_runtime=14, everything works:
conda ...
9
votes
Does QGIS work with Anaconda?
Yes, QGIS is even available on Conda Forge: https://anaconda.org/conda-forge/qgis
8
votes
Accepted
Getting QGIS to work with Python2.7 Anaconda Distribution?
I use both Macos Kyngchaos QGIS and Anaconda Python on my Mac with success.
To do this, you must set your Anaconda Python path in your QGIS variables environment.
Go to QGIS > Preferences > System
...
8
votes
GDAL ImportError: DLL load failed: The specified module could not be found
I had the same exact problem. I fixed it by:
Uninstalling Anaconda and reinstalling, making sure the "Add anaconda to PATH" option was ticked.
Installing geopandas with conda install -c conda-forge ...
7
votes
Accepted
Installing ArcPy (from ArcGIS Pro) with Anaconda?
With ArcGIS Pro 1.3, conda is included as part of the base Python installation. If you can wait, this is probably the easiest way to integrate the two as the shipped environment will provide a ...
7
votes
GeoPandas installation errors
Not a GIS related issue, but a conda issue. You are trying to install in the base environment and there might be package version conflicts. Try creating a new env and installing there:
conda create -...
6
votes
How to control QGIS from within Anaconda's Spyder (Continuum Analytics Python distribution) in Windows
If you're not 100% stuck with your Anaconda distro you can try this:
What I do is install QGIS from OSGEO4W rather than standalone. This way I get a complete python environment with QT and many more ...
6
votes
Accepted
ImportError: DLL load failed: The specified module could not be found. while importing GeoPandas
Just open anaconda CLI. activate your environment and run this command:
pip uninstall pyproj && pip install pyproj
This should resolve your issue with the information that you have provided.
5
votes
Accepted
Installing jp2 driver for GDAL
It looks like this is a problem with the conda packaging of gdal. I see that the current gdal version on conda is 2.1.3, not 2.1.0, so hopefully this packaged version works. Consider removing the ...
5
votes
Accepted
Cannot install GeoPandas on cloned arcgispro env in Anaconda
Geopandas is included with Python for ArcGIS Pro. See the image below. Maybe you have cloned your environment but your Python environment defaulted back to the walled garden version for some reason?
4
votes
Using spyder as Python IDE with ArcGIS Pro?
This question seems resolved but I found an easy way to use arcpy on Spyder.
First, in ArcGIS pro you need to create a new environment of python from Python Package Manager. (I created in default ...
4
votes
Cannot install a version of GDAL via Anaconda that permits reading BigTIFFs
Here's the discussion on the conda-forge lists with the background on the DLL load error. I encountered the same issue where it stopped working after doing a conda update gdal, and pinning ...
4
votes
Accepted
Installing Arcpy in an Anaconda enviroment.
I am going to show how you can replicate arcgis' python enviroment using conda and then plug arcpy to it. This enviroment shall be isolated from arcgis' python so whatever changes do to it, it shouldn'...
4
votes
Accepted
TypeError: tuple indices must be integers or slices, not str after ingested data into the open data cube
I'm not certain what the error is just yet. I have this (the CEOS wrapper for pyCCD) working on my machine and can relay details I think are relevant to pyccd.
Data
Landsat data should be ...
4
votes
Accepted
How to display together a shapefile (country basemap) and points (from CSV) via geopandas?
The plot() method creates a matplotlib figure and returns an ax object by default. If you want to create just one figure and plot multiple geometries on it, you have to specify the ax parameter. For ...
4
votes
How to make PROJ work via Anaconda in Google Colab?
After some stressful fight I managed to patch up a solution. I post the answer below because I believe a lot of people will hit the same problem trying to do geospatial work with Conda in Google Colab:...
4
votes
Unable to activate cloned ArcGIS Pro default Python environment due to missing packages
I have found using conda from the command line a more reliable way of cloning an environment. You get to see the status of the cloning.
Clone the existing ArcGIS Pro environment with this command
...
4
votes
Accepted
Is it possible to run PDAL without Conda?
In OSGeo4W setup -> Advanced Install, you can select the PDAL Library and install on a QGIS instalation and use in Python-Qgis standalone or in OSGeo4W Shell.
4
votes
QGIS installed via Windows Anaconda fails to launch
As of March 2022, the highest version of QGIS available in conda-forge is 3.18. This works with GDAL 3.3, but does not seem to work with GDAL 3.4. Thus, the solution is to pin an older version of GDAL....
4
votes
Calculate the Topographic Ruggedness Index using GDAL
I suppose you have then never read the documentation of gdaldem either https://gdal.org/programs/gdaldem.html.
Generate a Terrain Ruggedness Index (TRI) map from any GDAL-supported
elevation raster:
...
4
votes
Accepted
Python unable to import GDAL
You are using gdal 3.6 and trying to use an older style of gdal syntax that was deprecated in gdal 1.7 (Jan 2010) and removed in 3.1 (May 2020).
The correct import is:
from osgeo import gdal
From the ...
3
votes
How to import qgis.core in spyder?
I do not familiar with spyder since I write scripts by PyCharm which is pretty awesome. And I have solved your problem according to the blog.
http://spatialgalaxy.net/2014/10/09/a-quick-guide-to-...
3
votes
Accepted
Gdal_calc.py problems from command line?
Your ArcGIS python is the system default. So when you run a python script without specifying which python to use, the ArcGIS one is used.
Don't upgrade the ArcGIS numpy, you can break arcpy.
You ...
3
votes
Link QGIS to Anaconda Python Distribution: Spyder, iPython Notebook, pip, scikit-learn
On Windows, your best option is currently to use the Python distribution that can be installed through OSGeo4W and install pip through the OSGeo4W installer, too.
While pip cannot install many ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
anaconda × 131python × 58
gdal × 35
installation × 35
arcpy × 27
qgis × 18
arcgis-pro × 15
jupyter-notebook × 12
conda × 12
geopandas × 11
python-2.7 × 10
python-3 × 10
importerror × 7
pyqgis × 6
geotiff-tiff × 6
windows × 6
pandas × 5
spyder × 5
arcmap × 4
remote-sensing × 4
error × 4
gdal-translate × 4
mac × 3
osgeo4w × 3
postgis × 2