Error installing eomaps through conda and pip

2024/11/18 15:28:32

I am getting the following error output when trying to install eomaps using Conda. I don't know how to solve this. I have also tried the same using pip but it didn't seem to solve the problem. Here is the error that Conda reports:

(base) C:\Windows\system32>conda install -c conda-forge eomaps
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.

Here is the error that pip reports:

ERROR: Failed building wheel for cartopy
ERROR: Command errored out with exit status 1:
------
ERROR: Failed building wheel for fiona
ERROR: Could not build wheels for cartopy which use PEP 517 and cannot be installed directly

How can I get this to install?

Answer

EOmaps dev here...

I think the problem is that you're installing packages in your (base) environment! You most probably have some packages installed (previous versions of cartopy, pyproj etc.?) that conflict with the requirements of EOmaps which is why the conda-solver does not succeed.

I'd strongly suggest working in a fresh environment and NOT in the base environment!
(Checkout conda user-guide - managing environments)

As an example, the following should work without any problems:

conda create -n eomaps_env python=3.9
conda activate eomaps_envconda install -c conda-forge eomaps

(the name eomaps_env and the python-version are both optional and you can change it to whatever name and version you like!)


To speed up solving complex dependencies you can also try to use mamba (a c++ reimplementation of the conda package manager) which does the very same thing as conda (but solving dependencies works a lot faster):

conda create -n eomaps_env python=3.9
conda activate eomaps_env
conda install -c conda-forge mambamamba install -c conda-forge eomaps
https://en.xdnf.cn/q/118659.html

Related Q&A

DFS on a graph using a python generator

I am using a generator to do a full search on a graph, the real data set is fairly large, here is a portion of the code i wrote on a small data set:class dfs:def __init__(self):self.start_nodes = [1,2]…

Importing test libraries failed. No module named a

I have a folder /example which contains /Libs which further contains different folders /a, /b each containing python libraries. I am trying to run a robot framework code from /example.The error it show…

Sorting characters by count using PHP or Python

I have a string of charactersabcdefghijklmnopqrstuvwxyz_ I want to take this string of characters and sort them by the number of times they appear in a large block of characters. For example: cwrxwzb…

Save user first_name as default value for model django

I have an article model with author variable which I want to save as the users first and last name. I use custom user model called Account. author = models.CharField(author,max_length=50 default=User.f…

How to compare two imagefile from two different files in python

I would like to create a program that compares two images. I need to take images from two different folders and compare that images if they are same or not. Then I want to print out as same or differen…

Cant import from module despite presence of __init__.py

I have the following folder structureproject_folder/pyutils/__init__.pyscript1.pyscript2.py lambdas/__init__.pylambda_script1.pylambda_script2.pylambda_tests/__init__.pylambda_test1.pyWithin lambda_tes…

Multiple strings in one variable

Say, for example, I have some code that goes like this: sentence = input("Enter input: ") target_letter = "a" or "b" or "c" print(sentence.index(target_letter))M…

How to get the area of shape filled using turtle

I graphed a fractal shape in Python using turtle, and am trying to get the area of this fractal after a sufficiently high iteration. This fractal is related to the Koch snowflake, for those interested.…

What distinguishes a command from needing () vs not?

I recently spent way too long debugging a piece of code, only to realize that the issue was I did not include a () after a command. What is the logic behind which commands require a () and which do not…

python iterate yaml and filter result

I have this yaml file data:- name: acme_aws1source: awspath: acme/acme_aws1.zip- name: acme_gke1source: gkepath: acme/acme_gke1.zip- name: acme_ocisource: ocipath: acme/acme_oci1.zip- name: acme_aws2so…