My shell prompt is read-only, so when trying to activate a venv, I get
source myenv/bin/activate
-bash: PS1: readonly variable
Looking at the docs here
https://virtualenv.pypa.io/en/stable/reference/#envvar-VIRTUAL_ENV_DISABLE_PROMPT
Any virtualenv created when this is set to a non-empty value will not have it’s activate script modify the shell promp
So, I deleted the venv, ran
export VIRTUAL_ENV_DISABLE_PROMPT=1
and recreated the virtual environment,
virtualenv myenv
but it still shows
-bash: PS1: readonly variable
When I try to source it.
The variable seems to be set correctly
env | grep VIRTUAL_ENV_DISABLE
VIRTUAL_ENV_DISABLE_PROMPT=1
What am I doing wrong here?