Last active
August 12, 2018 16:11
-
-
Save aliartiza75/16f0bd59991a9ab469f617c2a71191dd to your computer and use it in GitHub Desktop.
Process to create virtual env for python projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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