Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install cartopy #2436

Open
Jayayadav33 opened this issue Sep 17, 2024 · 5 comments
Open

Unable to install cartopy #2436

Jayayadav33 opened this issue Sep 17, 2024 · 5 comments

Comments

@Jayayadav33
Copy link

Jayayadav33 commented Sep 17, 2024

I am using Ananconda on Windows 10. Python version: 3.11.7, I am unable to install it on my system. I have tried all the install as per the anaconda cartopy page: https://anaconda.org/conda-forge/cartopy . I get the following error message:

(PhD_Objective2) C:\Users\Admin>conda install cartopy
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.Collecting package metadata (repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.

@akrherz
Copy link
Contributor

akrherz commented Sep 17, 2024

Do you have conda-forge as your first channel?

@Jayayadav33
Copy link
Author

I do not know if this is the first channel. I am kind of new to programming. But I had also tried this:
conda config --add channels conda-forge
conda config --set channel_priority strict
conda install cartopy

URL for this: https://github.com/conda-forge/cartopy-feedstock
But got the same result.

@dopplershift
Copy link
Contributor

I would create a new environment and see if that works:

conda create -n myenv python=3.11
conda activate myenv
conda install cartopy

@lgolston
Copy link
Contributor

Creating a fresh environment should solve this as suggested above. I would also check what version of conda you have as installed, as recent versions use libmamba under the hood and are less prone to this problem.

@Jayayadav33
Copy link
Author

Yes. This is working in fresh environment. But not working in an existing environment. I am using anaconda navigator 2.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants