When I tried to use virtualenv on Ubuntu 18.04, I got this error:
bash: /usr/local/bin/virtualenv: /usr/bin/python: bad interpreter: No such file or directory
Python 2 and 3 is working fine:
josir@desenv16:~/bin$ which python3
/usr/bin/python3
josir@desenv16:~/bin$ python3
Python 3.6.9 (default, Apr 18 2020, 01:56:04)
[GCC 8.4.0] on linux
I've already tried to unistall virtualenv:
sudo apt-get purge --auto-remove virtualenv
sudo apt-get purge --auto-remove python-virtualenv
sudo apt-get purge --auto-remove python3-virtualenv
But when I installed again, the error remains.