sudo apt-get install python3-pip
sudo pip3 install virtualenv
virtualenv venv
you can use any name insted of venv
virtualenv -p /usr/bin/python2.7 venv
source venv/bin/activate
source venv/bin/activate.fish
deactivate
virtualenv -p python3 myenv
python3 -m venv myenv
Hi ,I have installed pip3 and the virtual environment but I'm unable to activate it. I really tried running the pip3 install virtualenv and this is what it is displaying....
C:\Users\USER>pip3 install virtualenv
Requirement already satisfied: virtualenv in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (20.4.7)
Requirement already satisfied: filelock<4,>=3.0.0 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from virtualenv) (3.0.12)
Requirement already satisfied: six<2,>=1.9.0 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from virtualenv) (1.16.0)
Requirement already satisfied: distlib<1,>=0.3.1 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from virtualenv) (0.3.2)
Requirement already satisfied: appdirs<2,>=1.4.3 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from virtualenv) (1.4.4)
Please can you help me out? Thank you