Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jayanthkmr/8be4b31ece5b3eefbb72ee82d176ffb9 to your computer and use it in GitHub Desktop.

Select an option

Save jayanthkmr/8be4b31ece5b3eefbb72ee82d176ffb9 to your computer and use it in GitHub Desktop.

Revisions

  1. @frfahim frfahim revised this gist Aug 9, 2017. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion install virtualenv ubuntu 16.04.md
    Original file line number Diff line number Diff line change
    @@ -28,4 +28,10 @@

    ### To deactivate:

    deactivate
    deactivate

    ### Create virtualenv using Python3
    virtualenv -p python3 myenv

    ### Instead of using virtualenv you can use this command in Python3
    python3 -m venv myenv
  2. Farhadur Raja Fahim created this gist Apr 2, 2017.
    31 changes: 31 additions & 0 deletions install virtualenv ubuntu 16.04.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    # How to install virtualenv:

    ### Install **pip** first

    sudo apt-get install python3-pip

    ### Then install **virtualenv** using pip3

    sudo pip3 install virtualenv

    ### Now create a virtual environment

    virtualenv venv

    >you can use any name insted of **venv**
    ### You can also use a Python interpreter of your choice

    virtualenv -p /usr/bin/python2.7 venv

    ### Active your virtual environment:

    source venv/bin/activate

    ### Using fish shell:

    source venv/bin/activate.fish

    ### To deactivate:

    deactivate