Skip to content

Instantly share code, notes, and snippets.

@kamauvick
Created September 7, 2019 11:20
Show Gist options
  • Save kamauvick/7b2aa0bebec0dfb101116b9b09acc81d to your computer and use it in GitHub Desktop.
Save kamauvick/7b2aa0bebec0dfb101116b9b09acc81d to your computer and use it in GitHub Desktop.
Welcome file

Creating virtual envs

Hi guys! Below are simple steps to install pip3. This will also help when installing virtualenv which gives you an easy way to create virtual environments.

Pip3

$ sudo apt update

$ sudo apt install python3-pip

Check the pip version

$ pip3 --version

Virtualenv

You can use this to create new virtual environments Use the command below to install virtualenv

$ sudo pip3 install virtualenv

You can now use the command below to create a virtual environment

$ virtualenv < name_of_virtual_environment >

Activating the virtual environment

$ source venv/bin/activate

© Vick Kamau

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment