modify bashrc add below line at the end of bashrc file if virtual environment is installed in the anaconda environment replace /home/meherp/anaconda with correct installation location virtualenv and virtualenvwrapper export workon_home=$homevirtualenvs export virtualenvwrapper_python=/home/meherp/anaconda /bin/python source /home/meherp/anaconda /bin/virtualenvwrapper sh add below at the end of bashrc file if virtualenv environment is created outside the anaconda environment replace python with correct version python or python export workon_home=$homevirtualenvs source /usr/local/bin/virtualenvwrapper sh export virtualenvwrapper_python=/usr/bin/python create virtualenv test the installation by creating virtualenv and installing numpy to it source ~bashrc mkvirtualenv vtest - python pip install numpy activate the environmentworkon vtest deactivate the environment deactivate delete the environment rmvirtualenv vtest packages in this sectionwe will learn to create the 'packages'which are nothing but the collection of modules under the same name location of installed packages before creating our own packagelet' see the location of the installed packages the installed packages (using pip commandare saved in the folder 'lib/python /site-packages'as shown below(for environment 'pythondsp'pythondsp/lib/python /site-packages (without environment/home/anaconda /lib/python /site-packages apart from current working directorythe python look for the files in the folder 'site-packageswe will understand this in section the complete list of the directories can be seen using 'sys pathcommand packages