what is best-practice for changing the default global python interpreter on my fresh debian-based linux node to python3.x?
When I create a fresh Debian or Ubuntu VM, one of the first things I do is use
apt to install
python3-pip, and sometimes either
echo "alias python=python3" >> ~/.bashrc so I don't need to do it again, or even
sudo su && echo "alias python=python3" >> /etc/profile.d/00-aliases.sh && exit when I need to make a daemon user like
The result is often havoc for potential programs or humans who make shell calls to
python and then use any other default python-related environment variables. When things like
$PYTHONPATH get assigned out of context, problems arise. I think
virtualenvis probably involved somehow.