Skip to main content

Questions tagged [conda]

With conda, you can create, export, list, remove, and update environments that have different versions of Python and/or packages installed in them.

Filter by
Sorted by
Tagged with
0 votes
0 answers
51 views

After installation of pyogrio Could not detect PROJ data files. Set PROJ_LIB environment variable to the correct path. when importing gpkg

When I import a geopackage with only geopandas all is fine, however, if I try to use pyogrio like this in my jupyter notebook: gpd.options.io_engine = "pyogrio" network = gpd.read_file(r&...
i.i.k.'s user avatar
  • 1,755
0 votes
2 answers
141 views

Rasterio & rioxarray no longer compatible with fairly standard modules

I just bought a new computer and want to read a geotiff and plot it in cartopy. I'm typing: conda create --name my_env conda activate my_env conda install numpy pandas jupyter cartopy xarray ...
Robbie Mallett's user avatar
1 vote
0 answers
98 views

ArcGIS Pro Python package and SSL

Our company internet gateway rejects Python package downloading as insecure but does work with --insecure in a conda call. This leaves non command line users stuck with the default ArcGIS Pro ...
user24007's user avatar
  • 159
1 vote
1 answer
196 views

Cannot plot with Cartopy: Incomplete shapefile definition error BUT .shp .shx and .dbf are all present

I used to plot maps with Cartopy, which actually used to work fine until now. Recently, when adding the maps features to a plot (es. coastlines etc) I get this error: "ValueError: Incomplete ...
Noelle_L's user avatar
0 votes
2 answers
2k views

import pyarrow fails even when installed

I need to use the pyarrow package on QGIS 3 (using QGIS 3.32.2 'Lima') on Windows 11, and install it in OSGeo4W shell using pip: pip install pyarrow, which installs 13.0.0 by default as I'm writing ...
Neptune-Meister's user avatar
1 vote
1 answer
1k views

Python unable to import GDAL

I am trying to run a Python code with GDAL library. I've created the environment and installed GDAL and GeoPandas but the Python won't import the GDAL for some reason. What am I doing wrong here? Here ...
Prashant Kumar's user avatar
1 vote
1 answer
284 views

Running pyproj installed with pip but not with conda

I am running Python 3.11.4 I would like to use pyproj 3.6 to calculate geoid heights as described in the documentation exemple. However, I don't get the same result as in the documentation when ...
basso31's user avatar
  • 21
1 vote
1 answer
104 views

Install osm2pgsql in a conda environment

I have OpenStreetMap data and a database with the postgis extension, on a supercomputer (precisely Jean Zay, French cluster). In order to use JZ and install all the programs, packages etc I need on JZ,...
DianeS's user avatar
  • 103
1 vote
4 answers
5k views

ModuleNotFoundError: No module named '_gdal' in Ubuntu 20.04 and Python 3.8

I know that this has been asked multiple times, but I still arrive at the ModuleNotFoundError: No module named '_gdal' error in my Ubuntu 20.04 workstation and with Python 3.8 under Anaconda. The ...
magus_e's user avatar
  • 15
0 votes
1 answer
367 views

Installing Packages in a cloned environment in ArcGIS Pro 3.1 throws an error

I am trying to install the r-arcgis-essentials package into a clone of the default arcgispro-py3 environment (my clone is named r-notebook) using the Package Manager tab in ArcGIS Pro 3.1. The task ...
Zachary Ordo - GISP's user avatar
1 vote
0 answers
130 views

gdal_merge.py in Conda says DistributionNotFound

I ran across this issue about a year ago, solved it, and subsequently lost my notes. I'm running gdal_merge.py through the command line in a Conda environment. >%CONDA_PREFIX%\Scripts\gdal_merge....
NW_Photo_Laureate's user avatar
0 votes
0 answers
381 views

Bulk download from USGS The National Map (TNM)

I am looking for a way to bulk download data from the USGS The National Map (TNM). I found approximately 150 small (10MB) DEM tiles. The official USGS instructions are to download an open source ...
NW_Photo_Laureate's user avatar
0 votes
0 answers
169 views

Shapely problems within conda environment

I was, so far, using Shapely to work with polygon data to "filter" some point within the polygon. I have tried to define a polygon like this. from shapely.geometry import Point, Polygon ...
tonino's user avatar
  • 1
1 vote
1 answer
509 views

Unable to open ArcGIS Pro notebook from cloned active environment

I have been working in ArcGIS Pro Notebooks from my default active environment (arcgispro-py3). I wanted to install a new package in this environment, but once in the package manager I have the ...
Scott Z's user avatar
  • 141
1 vote
0 answers
170 views

Installing QGIS through Anaconda on Mac OS, incompatible library version

I am using Conda 22.11.1 on my Mac and installed QGIS using conda install -c "conda-forge/label/cf202003" qgis in a new conda environment titled qgis_personal just for QGIS. When I use the ...
putabirdonit12's user avatar
2 votes
1 answer
213 views

Batch file to clone ArcGIS Pro Python env

I want to create a batch file that will clone the default ArcGIS Pro python environment and install boto3 to help set up new PCs. I can clone the environment with the following batch, however I cannot ...
mapface's user avatar
  • 431
0 votes
1 answer
79 views

Why does the earthengine-api package on conda-forge limit the google-api-python-client package version?

On conda-forge, the latest version of the earthengine-api package (and, I believe, many versions before the latest) requires google-api-python-client >=1.12.1,<2. However, the setup.py file for ...
David Manowitz's user avatar
0 votes
0 answers
212 views

gdal_calc.py not working with VSCode/Conda on Windows

I'm passing a simple gdal_calc.py command line argument to os.system() in a python script. However when I run the script, nothing is generated and the gdal_calc.py source script opens automatically: ...
Aragon's user avatar
  • 11
0 votes
0 answers
710 views

Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment. How do I correctly do this?

I'm attempting to configure VS Code for ArcPy/ArcGIS Pro development, and things have been going ok so far, however I have run into an issue I am not sure how to resolve. I'm also curious to hear how ...
mfcallahan's user avatar
0 votes
0 answers
108 views

ArcGIS Server Py3 - <type 'exceptions.ImportError'>, ImportError('No module named arcgis',), <traceback object at 0x00000000025870C8>

I have cloned the default python env that installs with ArcGIS Server using conda create in the python command window using: conda create --clone arcgispro-py3 -p"C:\Program Files\ArcGIS\Server\...
geoJshaun's user avatar
  • 1,335
0 votes
1 answer
3k views

Update GDAL in an Anaconda environment

I have a GDAL installed in an Anaconda environment: (base) > conda create --name gdal_env (base) > conda activate gdal_env (gdal_env) > gdal_info --version GDAL 3.0.2, released 2019/10/28 ...
sutan's user avatar
  • 941
0 votes
0 answers
219 views

GDAL errors with conda installation

I installed gdal using conda (Windows) with 'conda create -n pygeo gdal h5py python=3.8'. After activating with conda activate pygeo, and attempting to write out a geotiff using gdal_translate, I get ...
user64841's user avatar
1 vote
0 answers
69 views

Unable to install r-lidr on MacOS with conda

I am unable to get https://anaconda.org/conda-forge/r-lidr installed on MacOS Monterey 12.2.1 with conda 4.11.0. This is my environment.yml: name: r-lidr-test channels: - conda-forge - nodefaults ...
Kevin Pauli's user avatar
1 vote
1 answer
359 views

Why can't I import QGIS module in PyCharm

I have used the following command-line successfully (python3.7) conda install -c conda-forge qgis and I'm able to import the qgis-python module by import qgis in IPython. However, when I tried to ...
kawataku's user avatar
0 votes
1 answer
632 views

Running GDAL processing tools from QGIS in conda environment

I am trying to run Polygonize (Raster to Vector) from QGIS 3.18.3-Zürich inside a conda environment. When running the command, I encountered the following error. Process gdal_polygonize.bat failed to ...
Aman Bagrecha's user avatar
0 votes
1 answer
126 views

QGIS from conda-forge won't open on OSX 11.6 (Big Sur)

Installing QGIS using conda and conda-forge works really well on Windows and Linux (it includes a file driver not normally included with other installs), but for some reason on my MacBook QGIS won't ...
scalt's user avatar
  • 21
2 votes
2 answers
187 views

QGIS 3.20 cannot launch on desktop after changing the environmental variable

I installed QGIS 3.20 and changed the environmental variable to append PYTHONHOME to a miniconda environment. After that, I cannot launch QGIS desktop again. The welcome picture flashes, and after &...
Hengshan Li's user avatar
2 votes
0 answers
358 views

Using PDAL in custom QGIS plugin

Is there a way to use PDAL in the custom QGIS plugin without conda (especially in Windows)? The only solution I'm using now is conda environment activation and launching QGIS from this environment ...
Марина Лисниченко's user avatar
1 vote
2 answers
2k views

Bundling Conda environment in with .exe for ArcPy

I'm a beginner in Python. I don't believe this is a duplicate question, because the other questions seem to be concerned with starting a conda environment within a command line. I want it to happen on ...
Darby's user avatar
  • 75
0 votes
1 answer
1k views

Cannot authenticate Earth Engine on Mac OSX

Fresh install of Mac OSX Catalina (v10.15.7) Running Anaconda 3 and Python 3.8.10 I install the EE Python API client by doing: conda install earthengine-api Install is successful I then try to ...
nyquist's user avatar
  • 148
1 vote
0 answers
70 views

Environment setup in custom QGis plugin

I'm doing a plugin based on conda with 3rd party libraries. Is there a way to let users install all the dependencies at the same time when plugin is installing in QGis?
Марина Лисниченко's user avatar
2 votes
0 answers
526 views

ArcGIS Pro Broken Conda Environment [closed]

I recently tried to install geopandas and shapely into my ArcGIS Pro Python 3.7 environment, but instead of utilizing the package manager within Pro, I foolishly tried to conda install into the base ...
user182910's user avatar
3 votes
1 answer
2k views

Cannot find cloned python arcgispro-py3 environment with conda env list

I am trying to clone my python environment that comes with ArcGIS Pro (arcgispro-py3 located in C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3) to a location I can access (I do not have ...
ENIAC-6's user avatar
  • 906
2 votes
2 answers
6k views

Trouble importing Fiona in Python

I am trying to use the Fiona module in Python, but am having trouble getting it to work. After issuing conda install fiona, the installation using conda seems fine, but when I issue import fiona, I ...
user44796's user avatar
  • 1,925
1 vote
0 answers
566 views

Using conda and ArcPy with ArcMap

Is there a way to use ArcPy without having ArcGIS Pro? I am currently using ArcMap 10.8 and am trying to set up a conda environment that is compatible. However, I'm having trouble finding the esri ...
Olive's user avatar
  • 133
1 vote
0 answers
572 views

Using QGIS in a Conda environment

I have installed QGIS in a Conda virtual environment called qgis_stable. When I open Python in the terminal and try to run: import gqis.core I get the error message: ImportError: libGL.so.1: cannot ...
Ben K's user avatar
  • 11
3 votes
1 answer
577 views

Activating a conda environment from within QGIS -- cannot be done due to inherited environmental variables?

Background I've been working on a small QGIS Python plugin. Part of the functionality requires a number of packages that have complex dependencies. In my regular Python use, I use conda to manage it. ...
Huite Bootsma's user avatar
1 vote
1 answer
1k views

Can't install Packages with Cloned ArcGIS Pro Python

I have a new installation of ArcGIS Pro 2.6 on a Windows 10 computer. I have successfully cloned Python because I want to install third-party packages to this cloned environment and still use arcpy. ...
GBG's user avatar
  • 10k
0 votes
1 answer
924 views

ArcPy import arcgiscripting

I created a new environment in Conda and installed Python 3.6.9 along with certain modules including ArcPy in that new environment. Now, when the script in Spyder tries to import arcpy, I get the ...
Arthur_Morgan's user avatar
2 votes
0 answers
203 views

Unable to connect to database within Conda Data Cube environment [closed]

I followed the steps listed at https://cubes.readthedocs.io/en/v1.0.1/install.html and did the following: Installed Python Installed PostgreSQL ssudo sh -c 'echo "deb http://apt.postgresql.org/...
Supriya Sharma's user avatar
1 vote
0 answers
185 views

Using gdal_proximity inside conda environment

I want to batch gdal_proximity using python. The following command is working inside OSGeo4W Shell: C:\python ./gdal_proximity.py -srcband 1 -distunits PIXEL -values 1 -ot Float32 -of GTiff "[...
Neperin's user avatar
  • 66
0 votes
0 answers
702 views

Why doesn't installing GDAL from `pip` work on Ubuntu 18.04x64

Does anyone know why the pip install of gdal never seems to work? I am asking out of genuine curiosity and don't intend to sound negative. I have a related downstream packaging issue with GDAL as a ...
krishnab's user avatar
  • 919
2 votes
0 answers
123 views

What's the role Qwidget and Qlayout in the QGIS interface?

I use miniconda3 to manage my software installations, including QGIS, so I can use packages like geopandas easily in the QGIS python console. Lately however, when I open qgis from the command line ...
ghillieman18's user avatar
5 votes
2 answers
1k views

Installing Fiona into cloned conda environment in ArcGIS Pro gives ImportError

I am trying to install Fiona into a cloned conda environment in ArcGIS Pro. I have cloned the default environment and tried to install it both through ArcGIS and through the conda prompt (through ...
jeff-diz's user avatar
2 votes
0 answers
3k views

Problems installing rasterio from conda

I'm trying to install the rasterio python package using the conda package manager. But when I try to do this in a new clean conda environment, I get an "Found conflicts!" error with no information on ...
nh57b's user avatar
  • 21
0 votes
1 answer
593 views

ipyleaflet with GEE in JupyterLab doesn't show layer

I'm trying to run the interactive map example for GEE community - Python API on JupyterLab (https://github.com/gee-community/ee-jupyter-contrib/blob/master/examples/getting-started/display-interactive-...
Ofir's user avatar
  • 687
0 votes
0 answers
478 views

earthpy.spatial stack() -function and data type

I have Landsat-8 OLI images in directories named after image WRS-2 scenes. I tried to compose script that would iterate these directories and stack rasters within each directory - using earthpy python ...
Mitro Müller's user avatar
1 vote
0 answers
84 views

GDAL python package with Anaconda and ElasticSearch 7 [closed]

I'm trying to import feature data into elasticsearch v7.4 using GDAL to convert from an ArcGIS feature service layer into geoJSON for indexing. We use anaconda 3 (latest version 2019.10) for our ...
Matt's user avatar
  • 11
3 votes
1 answer
277 views

Creating a subclass that inherits from an ArcPy superclass?

I would like to create a subclass that inherits methods from the arcpy Describe class, as in: import arcpy class my_sublass(arcpy.Describe): pass However, arcpy.Describe is a function (that ...
jesnes's user avatar
  • 453
1 vote
2 answers
472 views

`pyproj` initialization error in PyCharm but not in cmd?

I am currently struggling to get pyproj to initialize when running in PyCharm. Oddly enough, I am able to get it to work in cmd. The version of pyproj I am using is 1.9.6, and the version of proj4 I ...
Bryce Frank's user avatar
  • 1,312