Ubuntu 16.04 Virtualenv Python 2 QuickStart Guide

December 8, 2017 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Ubuntu 16.04 Virtualenv Python 2

You are Welcome! The Tutorial Shows You Step-by-Step How to Install and Getting-Started with Python 2.X Virtualenv on Ubuntu 16.04 Xenial LTS i386/amd64 GNU/Linux.

And a Virtualenv on Ubuntu 16.04 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.

Finally, 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.

Ubuntu 16.04 Virtualenv Python 2 Quick Start Guide - Featured
  1. Open a Terminal Shell emulator window
    Ctrl+Alt+t on Desktop
    (Press “Enter” to Execute Commands)

    Ubuntu 16.04 Virtualenv Python 2 Quick Start Guide - Open Terminal Shell Emulator
  2. How to Install Google-Chrome Browser on Ubuntu

    Installing Chrome for Ubuntu
  3. Installing Virtualenv+Virtualenvwrapper

    sudo su -c "apt-get install virtualenvwrapper"
  4. Install Aptana Studio for Html5, Javascript, CSS & Python

    Install Aptana Studio IDE for Ubuntu
  5. To Make a Python Virtual Environmnet

    mkvirtualenv test
  6. To List All the Existing Virtual Environments

  7. To Switch the Virtual Environmnet

    mkvirtualenv essai
    workon test

    Show the Working Virtual Env:

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

    For Example:

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

  10. 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
  11. To Automatically Installing Commonly Used Tools

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

    For Example:

    echo 'pip install sphinx' > $WORKON_HOME/postmkvirtualenv
  12. Getting-Started with Python Selenium Testing Browser Environment:

    Quick-Start with Selenium Python Client

Tags: , ,

QuickChic Theme • Powered by WordPress