epri-dev / DER-VET

A tool for calculating, understanding, and optimizing the value of distributed energy resources based on their technical merits and constraints. The graphical interface is https://github.com/epri-dev/DER-VET-GUI . To get involved with the community of DER-VET users, please visit www.der-vet.com.
https://www.der-vet.com
BSD 3-Clause "New" or "Revised" License
20 stars 7 forks source link

Can't create conda environment with python=3.8.13 #2

Open atribera opened 2 years ago

atribera commented 2 years ago

I am getting the following message when I use conda create -n dervet-venv python=3.8.13:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - python=3.8.13

Current channels:

  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
etringer-epri commented 2 years ago

My guess is that your conda version is too old and does not have python 3.8.13

To determine the conda version that you have, run this command: conda -V The latest conda version is 4.13.0

To update conda (in your base environment), run: conda update -n base -c defaults conda

After updating conda, the conda create -n dervet-venv python=3.8.13 command should work.

atribera commented 2 years ago

I previously had conda 4.10.0 and after running conda update -n base -c defaults conda, I got conda 4.10.1, which is giving me the same error as before while trying to create an environment using python 3.8.13. I have tried running conda install conda=4.13.0 to get the latest version of conda but I get the following error:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - conda=4.13.0

Current channels:

  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch
  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
etringer-epri commented 2 years ago

Try to install python=3.8 in your base environment first. Then update conda, and create the new environment.

Helpful commands for further investigation: conda info conda config --show-sources

atribera commented 2 years ago

I figured I had issues with my conda config file. I have fixed the issue and everything works fine now. Thanks for your help.