Skip to content

Instantly share code, notes, and snippets.

@aliartiza75
Last active August 12, 2018 16:11
Show Gist options
  • Save aliartiza75/16f0bd59991a9ab469f617c2a71191dd to your computer and use it in GitHub Desktop.
Save aliartiza75/16f0bd59991a9ab469f617c2a71191dd to your computer and use it in GitHub Desktop.
Process to create virtual env for python projects
* Install python virtual envuornment:
$ python3 -m pip install --user virtualenv
* Creating a virtualenv
$ python3 -m virtualenv env
* Activate virtual environment
$ source env/bin/activate
* Deactivate virtual environment
$ deactivate
* Create a requirements.txt file for package intallation:
touch requirements.txt
File content:
sympy==1.1.1
kazoo
.
.
.
etc
* packages installed in the python virtual env will remain in there
Refrences: https://packaging.python.org/guides/installing-using-pip-and-virtualenv/
https://www.youtube.com/watch?v=IX-v6yvGYFg
https://www.youtube.com/watch?v=UcbUXq0wd-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment