How-to Getting-Started with Python 2.X Virtualenv and Virtualenvwrapper on Linux Mint 17.1 Rebecca LTS Easy Guide

February 21st, 2015 by thelinuxevangelist

Python Virtualenv/Virtualenvwrapper Linux Mint Quick-Start

The Linux Tutorial Shows You Step-by-Step How-to Install and Getting-Started with Python 2.X Virtualenv and Virtualenvwrapper for Linux Mint 17.1 Rebecca LTS i386/amd64.

A Virtualenv Environment, put simply, is an isolated working copy of Python which allows you to work on a specific project without worry of affecting other projects.

The Virtualenvwrapper include wrappers for creating and deleting virtual environments and otherwise managing your development workflow, making it easier to work on more than one project at a time without introducing conflicts in their dependencies.

Getting-Started Virtualenv/Virtualenvwrapper on Linux Mint 17.1 Rebecca LTS - Featured
  1. Open a Command Line Terminal Window
    (Press “Enter” to Execute Commands)

    Install Virtualenv/Virtualenvwrapper Linux Mint 17.1 Rebecca LTS - Open Terminal

    Or Login into Server Shell…

  2. How-to Install Google-Chrome Browser on Linux Mint Linux:
    Setup Chrome on Linux Mint.

  3. Installing Virtualenv+Virtualenvwrapper on Linux Mint

    sudo su -c "apt-get install virtualenvwrapper"
  4. Initial Virtualenv SetUp

    nano $HOME/.bashrc


    export WORKON_HOME=~/Envs

    Ctrl+x to Save & Exit from ‘nano’ Editor :)

  5. How-to Install Aptana Studio 3 IDE on Linux Mint Linux:
    SetUp Aptana Studio on Linux Mint.

  6. To Make a Python Virtual Environmnet

    mkvirtualenv test
  7. How-to Getting-Started with Python Selenium Browser Testing:
    Setup Python Selenium Wedriver.

  8. To List All the Existing Virtual Environments

  9. To Switch the Virtual Environmnet

    mkvirtualenv essai
    workon test

    Show the Working Virtual Env:

    echo $VIRTUAL_ENV
  10. To Install Software into the Virtual Environmnet

    For Example:

    pip install django
  11. To List All the Virtual Environmnet Packages

  12. To Automatically Run a Command after Environment Creation

    echo '[bash-command]' >> $WORKON_HOME/postactivate

    For Instance to Automatically Change to the New Env Directory:

    echo 'cd $VIRTUAL_ENV' >> $WORKON_HOME/postactivate
  13. To Automatically Installing Commonly Used Tools

    echo 'pip install [myGoodTool]' >> $WORKON_HOME/postmkvirtualenv

    For Example:

    echo 'pip install sphinx' >> $WORKON_HOME/postmkvirtualenv
(Visited 5 times, 1 visits today)

Tags: , , , , , , , , , , , , , , , , , , , , , ,

Comments are disabled