Prerequsites
You must have the following packages installed on your system.
Python 2 PIP
Install Virtualenv with Python 2
You must have Python 2 and PIP installed on your system. Use pip2 to install virtualenv Python module
Create Virtual Environment
The Python3 is installed at the standard location. Find the Python 2 binary file location using which command. Now, Create a separate environment for your Application. You can change the environment directory name (isoEnv used in below example) as per your choice. You can also define the environment directory on a different location. This command creates a local copy of your environment specific to this website. While working on this website, you should activate the local environment in order to make sure you’re working with the right versions of your tools and packages. To activate the new virtual environment, run the following: The name of the current virtual environment appears to the left of the prompt. For example: To verify the correct Python version, run the following: Any package that you install using pip is now placed in the virtual environments project folder, isolated from the global Python installation. Use pip2 to install a module: You can use ‘nose’ if you’re going to work with openstack. For example:
Deactivate virtualenv Environment
After finishing your work inside the virtual environment, simply exit from this by typing deactivate command. You will get the users to default shell.
Delete virtualenv Environment
If your application no more required the virtual environment, You can delete this. To delete the environment simply delete the environment directory.