NCAR / wrf-python

A collection of diagnostic and interpolation routines for use with output from the Weather Research and Forecasting (WRF-ARW) Model.
https://wrf-python.readthedocs.io
Apache License 2.0
402 stars 152 forks source link

Error heppend during the conda install #239

Closed OMGTaylor0814 closed 5 months ago

OMGTaylor0814 commented 5 months ago

`PS Q:\wrf> conda install -c conda-forge wrf-python Collecting package metadata (current_repodata.json): done Solving environment: | The environment is inconsistent, please check the package plan carefully The following packages are causing the inconsistency:

==> WARNING: A newer version of conda exists. <== current version: 22.9.0 latest version: 24.3.0

Please update conda by running

$ conda update -n base -c defaults conda

Package Plan

environment location: C:\Users\oucwj\anaconda3

added / updated specs:

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
_anaconda_depends-2022.10  |           py39_2          68 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
anaconda-custom            |           py39_2          13 KB  https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
ca-certificates-2024.2.2   |       h56e8100_0         152 KB  conda-forge
m2w64-gcc-libgfortran-5.3.0|                6         342 KB  conda-forge
m2w64-gcc-libs-5.3.0       |                7         520 KB  conda-forge
m2w64-gcc-libs-core-5.3.0  |                7         214 KB  conda-forge
m2w64-gmp-6.1.0            |                2         726 KB  conda-forge
openssl-1.1.1q             |       h8ffe710_0         5.8 MB  conda-forge
python_abi-3.9             |           2_cp39           4 KB  conda-forge
setuptools-69.5.1          |     pyhd8ed1ab_0         490 KB  conda-forge
wrf-python-1.3.4.1         |   py39h412d2f7_2         5.3 MB  conda-forge
------------------------------------------------------------
                                       Total:        13.5 MB

The following NEW packages will be INSTALLED:

_anaconda_depends anaconda/pkgs/main/win-64::_anaconda_depends-2022.10-py39_2 None m2w64-gcc-libgfor~ conda-forge/win-64::m2w64-gcc-libgfortran-5.3.0-6 None m2w64-gcc-libs conda-forge/win-64::m2w64-gcc-libs-5.3.0-7 None m2w64-gcc-libs-co~ conda-forge/win-64::m2w64-gcc-libs-core-5.3.0-7 None m2w64-gmp conda-forge/win-64::m2w64-gmp-6.1.0-2 None python_abi conda-forge/win-64::python_abi-3.9-2_cp39 None setuptools conda-forge/noarch::setuptools-69.5.1-pyhd8ed1ab_0 None wrf-python conda-forge/win-64::wrf-python-1.3.4.1-py39h412d2f7_2 None

The following packages will be UPDATED:

ca-certificates pkgs/main::ca-certificates-2022.07.19~ --> conda-forge::ca-certificates-2024.2.2-h56e8100_0 None

The following packages will be SUPERSEDED by a higher-priority channel:

anaconda pkgs/main::anaconda-2022.10-py39_0 --> anaconda/pkgs/main::anaconda-custom-py39_2 None openssl pkgs/main::openssl-1.1.1q-h2bbff1b_0 --> conda-forge::openssl-1.1.1q-h8ffe710_0 None

Proceed ([y]/n)? y

Downloading and Extracting Packages m2w64-gmp-6.1.0 | 726 KB | ########################################################################################################################################################################## | 100%
wrf-python-1.3.4.1 | 5.3 MB | ########################################################################################################################################################################## | 100%
m2w64-gcc-libgfortra | 342 KB | ########################################################################################################################################################################## | 100%
openssl-1.1.1q | 5.8 MB | ########################################################################################################################################################################## | 100%
python_abi-3.9 | 4 KB | ########################################################################################################################################################################## | 100%
setuptools-69.5.1 | 490 KB | ########################################################################################################################################################################## | 100%
_anaconda_depends-20 | 68 KB | ########################################################################################################################################################################## | 100%
m2w64-gcc-libs-core- | 214 KB | ########################################################################################################################################################################## | 100%
m2w64-gcc-libs-5.3.0 | 520 KB | ########################################################################################################################################################################## | 100%
ca-certificates-2024 | 152 KB | ########################################################################################################################################################################## | 100%
Preparing transaction: done Verifying transaction: failed

RemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda's operating environment.`

kafitzgerald commented 5 months ago

It looks like you may be having some trouble mixing packages from the "defaults" and "conda-forge" channels.

You might try installing wrf-python in a new environment using packages only from "conda-forge".

conda create -n wrf -c conda-forge wrf-python
conda activate wrf

If you need additional packages in this environment, you'll want to try to install them from "conda-forge" as well if possible.

OMGTaylor0814 commented 5 months ago

Dear @kafitzgerald , Thanks so much! It worked and I can use it now~