Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. ### Install virtualenv
  2.  
  3. `$ pip3 install virtualenv`
  4.  
  5. If this raises an error, try installing `sudo apt install python3-venv`
  6.  
  7. Create a new virtualenv
  8.  
  9. `$ python3 -m venv <envname>`
  10.  
  11. Activate the environment
  12.  
  13. `$ . <envname>/bin/activate`
  14.  
  15. Install all the dependencies from `requirements.txt`
  16.  
  17. `$ pip3 install -r requirements.txt`
  18.  
  19. You can exit the environment by typing
  20.  
  21. `$ deactivate`
  22.  
  23. I you modify the project using new libraries you might install, update the requirements.txt file
  24.  
  25. `$ pip3 freeze > requirements.txt`
  26.  
  27. For further questions, please consider reading the related documentation here.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement