Install python3 virtual environment on a redhat linux with python2.7.1

Viewed 22

I have redhat linux machine (Red Hat Enterprise Linux Server release 7.5 (Maipo) ) where python 2.7.5 is installed by default. Due to some reasons I can't uninstall/upgrade it. So I created virtual environment where I can install python3. But unfortunately virtual env created with python2.7.5.

Can I create virtual environment with python3?

Note: "virtualenv -p python3 envname" is not working.

0 Answers
Related