I needed to rename a python venv virtual environment in macOS 12.1
I followed the instructions in https://stackoverflow.com/a/68400551
I have already done
mv old_venv new_venv
Then
cd /path/to/new_venv/bin
Then
sed -i 's/old_venv/new_venv/g' *
I get the following error sed: 1: "Activate.ps1": invalid command code A
I tried this
sed -i'.original' 's/old_venv/greendeploy-py3101/g' *
after reading https://stackoverflow.com/a/4247319/80353
Then I get sed: python: in-place editing only works for regular files
What is another way to rename venv in macOS 12.1?
I know i can delete and then do a new venv from scratch but i would like to rename where possible.