Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Martin =?UTF-8?Q?Sch=C3=B6=C3=B6n?= Newsgroups: comp.lang.python Subject: Re: Conda create with python version fails me Date: 14 Nov 2025 15:46:53 GMT Organization: @ Home Lines: 86 Message-ID: References: <87zf8qdxm5.fsf@zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit X-Trace: individual.net 6+194d7/vCGD2ea/W76ATg3qL/Vsi+4epu5f9zsneuBqNOr+1b Cancel-Lock: sha1:i/kVqVSKVR3DH6XRod11WIO7tE0= sha256:DbnlR+iOdo+X58MvNng8gdn58GjzCShHI4sq86KcwLo= User-Agent: slrn/1.0.3 (Linux) Xref: csiph.com comp.lang.python:197583 Den 2025-11-13 skrev Loris Bennett : Hi Loris, Thanks for quick respons. > Martin Schöön 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 python= >> >> 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