Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. # Creating virtual envs
  2.  
  3. 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.
  4.  
  5.  
  6. ## Pip3
  7.  
  8. >`$ sudo apt update`
  9. >
  10. >`$ sudo apt install python3-pip`
  11.  
  12. Check the pip version
  13. > `$ pip3 --version`
  14.  
  15. ## Virtualenv
  16.  
  17. You can use this to create new virtual environments
  18. Use the command below to install virtualenv
  19. >``$
  20. sudo pip3 install virtualenv
  21. ``
  22.  
  23. You can now use the command below to create a virtual environment
  24. >``$
  25. virtualenv < name_of_virtual_environment >
  26. ``
  27.  
  28. Activating the virtual environment
  29. >`$
  30. source venv/bin/activate
  31. `
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. >&copy; Vick Kamau
  40. >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement