I’ve installed virtualenv with sudo apt-get install virtualenv , and whenever I try to create virtual environment with it, it creates environment for Python2.7, what am I supposed to do to solve it? I am using Ubuntu 18.04 LTS.
sudo apt-get install virtualenv
I think you might have installed Virtual Environment package for Python 2.7. So, the following code will help you:
sudo apt-get install python3-virtualenv