I had a python program that I could not get to work until I put it in a virtual environment. Since I use it a lot, I put the following in a zsh script:
python3 -m venv ~/bin/pypath/venv
source ~/bin/pypath/venv/bin/activate
pinyin.py $FILE > ${FILE}.pinyin
deactivate
(FILE being $1 in the outer script.)
Until this week, it would always complain that the venv already exists, which I ignored as it was expected. But this week, it instead says
Error: Command '['/Users/WGroleau/bin/pypath/venv/bin/python3.14', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
Now, the whole script (including the python part) still does what it is supposed to do, but this change is puzzling. Should I do anything about it?
pyvenv returns non-zero exit status 1 (during the installation of pip stage) looks similar, but there are at least two differences (pyvenv & python vs. venv & Python3.14). Also, the solution there seems a bit complicated.