

Use mkvirtualenv command and fill in the blank space with the mkvirtualenv test1 We might create our first virtual environment. Source ~/.bashrc (or accordingly source ~/.profile or source ~/.bash_profile) command reffered to the virtualenvwrapper.sh executable file and created hidden directory in home/econsole/.virtualenvs where the new enviroments will be located.Ĥ. er_scripts creating /home/eouser/.virtualenvs/get_env_details er_scripts creating /home/eouser/.virtualenvs/postactivate

er_scripts creating /home/eouser/.virtualenvs/preactivate er_scripts creating /home/eouser/.virtualenvs/postdeactivate er_scripts creating /home/eouser/.virtualenvs/predeactivate er_scripts creating /home/eouser/.virtualenvs/postrmvirtualenv

er_scripts creating /home/eouser/.virtualenvs/prermvirtualenv er_scripts creating /home/eouser/.virtualenvs/postmkvirtualenv er_scripts creating /home/eouser/.virtualenvs/premkvirtualenv er_scripts creating /home/eouser/.virtualenvs/initialize er_scripts creating /home/eouser/.virtualenvs/postmkproject er_scripts creating /home/eouser/.virtualenvs/premkproject Next we are able to apply these changes to current session with source source ~/.profile The third line tells the shell to execute virtualenvwrapper.sh during initialization. The second line tells the operating system about virtualenv location. The first line tells the shell where the projects will be stored(We have to create this folder with “mkdir ~/.devel” command) Source /usr/local/bin/virtualenvwrapper.shĮxport VIRTUALENVWRAPPER_VIRTUALENV=/usr/bin/virtualenv Source $HOME/.local/bin/virtualenvwrapper.shĮxport VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv Scroll down at the very end and add three lines which are needed.Įxport VIRTUALENVWRAPPER_VIRTUALENV=$HOME/.local/bin/virtualenv Use text editor to edit bash file for exporting Paths:Įxample 3: for Centos 7 (both types of user is included) Now we have to configure shell file to automate starting virtual enviroments during the start of the system. We downloaded the whole stuff which is the core of our task. To get those packages we will use pip: (use sudo in pip install virtualenvģ. Virtualenvwrapper(extension for virtualenv) Now we have to install some additional packages, which are neccessary to accomplish the installation: If you do not have Python installed on your operating system, please follow those steps for sudo apt install sudo apt-get install -reinstall python-pkg-resourcesĢ.
