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
@DianaLozanoP you don't have to use
3.10
version unless you have multiplie versions of python 3 on your systemalso make sure
pip
python package index is installedalso make sure your software dependencies on system are up to date use blow commands
sudo apt update
sudo apt upgrade -y
to install python3 pip on ubuntu
sudo apt install python3-pip
venv
module now in python default packages so you don't have to install