Den 2025-11-13 skrev Loris Bennett <
loris.bennett@fu-berlin.de>:
Hi Loris,
Thanks for quick respons.
Martin Sch””n <martin.schoon@gmail.com> writes:
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.
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
I have now run a series of tests on my main system running Debian 12 and
in a virtual machine updated to Debian 13. I get the same result in both
cases.
If I don't specify a python version all is fine.
If I try to specify a python version I don't get a new environment. The
error message I get is:
"The following packages are missing from the target environment:
- python=3.10"
(if I asked for version 3.10)
Some observations:
Myself, I can't find repodata.json. Not in my user directories at
least. Conda reports it can collect metadata anyway.
The main system has base python version 3.12.12 and the environment I
get if I don't specify a python version is equipped with version 3.11.2
In the virtual machine the base python is 3.11.5 and the created
environment gets 3.13.5
The last two ones look odd to me but that is what python3 --version
yields.
/Martin
--- PyGate Linux v1.5
* Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)