anaconda – Unable to create conda virtual environment with python=3.9
I’ve installed Anaconda on my laptop and I’m trying to create a virtual environment with python=3.9 by running:
conda create --name my_env python=3.9
…but I get the following error:
Channels:
- conda-forge
Platform: win-64
Collecting package metadata (repodata.json): - WARNING conda.conda_libmamba_solver.index:_json_path_to_repo_info(281): No repodata found for channel conda-forge. Solve will fail.
WARNING conda.conda_libmamba_solver.index:_json_path_to_repo_info(281): No repodata found for channel conda-forge. Solve will fail.
done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- python=3.9*
Current channels:
- https://conda.anaconda.org/conda-forge
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.
Conda info below:
active environment : None user config file : C:\Users\hidden\.condarc populated config files : C:\Users\hidden\.condarc conda version : 24.5.0 conda-build version : 24.5.1 python version : 3.12.4.final.0 solver : libmamba (default) virtual packages : __archspec=1=x86_64_v3 __conda=24.5.0=0 __win=0=0 base environment : C:\Users\hidden\anaconda3 (writable) conda av data dir : C:\Users\hidden\anaconda3\etc\conda conda av metadata url : None channel URLs : https://conda.anaconda.org/conda-forge/win-64 (offline) https://conda.anaconda.org/conda-forge/noarch (offline) package cache : C:\Users\hidden\anaconda3\pkgs C:\Users\hidden\.conda\pkgs C:\Users\hidden\AppData\Local\conda\conda\pkgs envs directories : C:\Users\hidden\anaconda3\envs C:\Users\hidden\.conda\envs C:\Users\hidden\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/24.5.0 requests/2.32.2 CPython/3.12.4 Windows/10 Windows/10.0.19045 solver/libmamba
conda-libmamba-solver/24.1.0 libmambapy/1.5.8 aau/0.4.4 c/. s/. e/.
administrator : False
netrc file : None
offline mode : True
Read more here: Source link