I am learning Python and Django in Ubuntu 18.04 where both Python 3.6.7 and 3.7.2 is installed. Whenever Pyhon3 command is given its showing the prompt of 3.7, but when I use pipenv to create a virtual environment for a project it's still using /usr/bin/python3(Python3.6.7) and not of Python3.7.2. Even Python3.7.2 has been configured as default with highest priority of 2 by using the command:
sudo update-alternatives --install /usr/binpython3 python3 /usr/bin /python3.6 1
sudo update-alternatives --install /usr/binpython3 python3 /usr/bin /python3.7 2
sudo update-alternatives --configure python3
and the above command shows the Python3.7 as the default by a "*" symbol, but still pipenv uses Python3.6.7. I want pipenv to use only Python3.7 and not 3.6. Don't know what to do. Please help.