Re: Conda create with python version fails me

2025-11-17 Thread Martin Schöön via Python-list
Den 2025-11-14 skrev Stefan Ram :
> Martin =?UTF-8?Q?Sch=C3=B6=C3=B6n?=  wrote or quoted:
>>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)
>
>   I'm not educated in Conda. But here are some wild and untested
>   guesses what could be done:
>
Your conda know-how is most likely superior to mine :-)

> conda search python
>
>   This might list the Python versions available.
>
Yields an error message very similar to the one cited above.

>   If the desired version does not appear, adding a channel known
>   to host older versions might help, like:
>
> conda create -n test python=3.10 -c conda-forge

Bingo! This works for me.
>
>. It might help to update Conda:
>
> conda update conda
>
Was already up-to-date.

Didn't bother testing the following. Later maybe.

>   . This should clear the Conda cache, but I don't know what you might
>   lose by doing it:
>
> conda clean --all
>
>   . Check out your conda base and user PATH variables, and prioritize
>   Conda environments over system-wide Python installations. 
>
>   Check your system's networking/firewall configuration doesn't block
>   Conda's access to remote repositories.
>
>   You could also try to require a more specific version you have,
>   like for example, "python=3.10.4", instead of, "python=3.10".
>
Many thanks.

/Martin
-- 
https://mail.python.org/mailman3//lists/python-list.python.org


Fwd: zipapp: add compression (method), compresslevel options from Zipfile

2025-11-17 Thread Mingye Wang via Python-list
Forgot to hit reply-all. Oops.
-- Forwarded message -
From: Mingye Wang 
Date: Mon, Nov 17, 2025 at 11:52 AM
Subject: Re: zipapp: add compression (method), compresslevel options
from Zipfile
To: Abdur-Rahmaan Janhangeer 


Yes I do! It's a very small change on top of the existing zipapp.py.
You can just run it with "python zipapp.py". I've tried using it to
make zstd and stored archives.

Tangential: the zip file format compresses each file separately, which
reduces the potential for good compression compared to "solid" formats
like .tar.gz. We can, however, work around this issue by using two
layers of zipping: the inner layer using "store", the outer layer
using whatever compression method is chosen by the user. But let's do
one thing at a time for now.
--
Mingye Wang (Artoria2e5)

On Sun, Nov 16, 2025 at 10:43 AM Abdur-Rahmaan Janhangeer
 wrote:
>
> You have some demo code for it?
>
>
> Kind Regards,
>
> Abdur-Rahmaan Janhangeer
> about | blog
> github
> Mauritius
>
> On Mon, 10 Nov 2025, 07:18 Mingye Wang via Python-list, 
>  wrote:
>>
>> Zipapp is meant to produce things that will be delivered to an end-user. In 
>> this way it should behave like most packaging tools and offer more 
>> "thorough" compression options, limited only by the version of the Python 
>> interpreter on the user's side (more specifically, their zipfile modules). 
>> As a result I believe we should be allowed to choose the compression method 
>> and compression level. Some seconds spent on the developer's computer can be 
>> minutes saved on downloading from a poor Internet connection.
>>
>> My proposed API surface include two keyword-only parameters, compression and 
>> compresslevel, both having the same meaning and type as their Zipfile 
>> counterparts. The compression option should take precedence over the current 
>> boolean "compressed" option if it is not set to None; otherwise the 
>> settings, including the defaults for "compressed" apply.
>> --
>> https://mail.python.org/mailman3//lists/python-list.python.org
-- 
https://mail.python.org/mailman3//lists/python-list.python.org