Re: Conda create with python version fails me

"Loris Bennett" <[email protected]> Thu, 13 Nov 2025 11:40:18 +0100
Newsgroups comp.lang.python
Organization FUB-IT, Freie Universität Berlin
Message-ID <[email protected]>
Hi Martin,

Martin Schöön <[email protected]> writes:

> About two years ago I moved from pip to conda. I have been happy with
> conda until yesterday.
>
> I want to create a new environment using a specific python version 
> rather than leaving that to conda. Cheat-sheets and online conda
> documentation tell me to use:
>
> conda create -n <name> python=<version number>
>
> like:
>
> conda create -n test python=3.10
>
> Which in my case yields an error message saying python 3.10 is not
> available in this environment.
>
> I have tried variations on the python specification:
>
> python==3.10.12
> python=3.10.12
>
> To no avail.
>
> I think (!??!) I have managed to do this in the past.
>
> Any help is more than welcome.
>
> /Martin

If I use an environment which provides Python 3.12 I can run both

  conda create -n test python=3.10

and 

  conda create -n test python=3.14

I only get the error

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

if I do something I would expect to fail, like

  conda create -n test python=3.99

Do you see a line such as

  Collecting package metadata (repodata.json): done  

If not, maybe your repodata.json is not getting updated and the current
one does not contain the Python version you are requesting.

Regards

Loris

-- 
This signature is currently under constuction.