/python-flask-virtualenv

how to create a virtualenv with python

Primary LanguagePython

Creating a Python virtual envirenment

Install venv

sudo apt-get install python-virtualenv

Create an envirenement

1. Go to your envirenment folder
2. run :
	- > virtualenv <my envirenment>

Activate the envirement

from your envirement directory run :

  • source /bin/activate

create a project

1. activate your envirenment
2. create your project folder
3. start codding your python script !  

clone a project

1. activate your envirenment
2. clone your project
3. Load your packages
4. start codding your python script !  

Deactivate the envirenment

deactivate

Save the packaging

pip freeze > requirements.txt

Load the packaging

if you clone the repo :

pip install -r requirements.txt