Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ctwoprod/12ee83c09c1fd1be37eec5f353d60a39 to your computer and use it in GitHub Desktop.
Save ctwoprod/12ee83c09c1fd1be37eec5f353d60a39 to your computer and use it in GitHub Desktop.

Revisions

  1. @pandafulmanda pandafulmanda revised this gist Jun 3, 2017. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Python3 Virtualenv Setup.md
    Original file line number Diff line number Diff line change
    @@ -16,15 +16,15 @@ To install virtualenv via pip run:
    $ pip3 install virtualenv
    ```

    ##### Uasge
    ##### Usage
    Creation of virtualenv:
    ```bash
    $ virtualenv -p python3 <name>
    $ virtualenv -p python3 <desired-path>
    ```

    Activate the virtualenv:
    ```bash
    $ source <name>/bin/activate
    $ source <desired-path>/bin/activate
    ```

    Deactivate the virtualenv:
  2. @pandafulmanda pandafulmanda revised this gist Jul 11, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Python3 Virtualenv Setup.md
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,8 @@
    $ brew install python3
    ```

    Pip3 is installed with Python3

    ##### Installation
    To install virtualenv via pip run:
    ```bash
  3. @pandafulmanda pandafulmanda revised this gist Jul 11, 2016. 1 changed file with 6 additions and 3 deletions.
    9 changes: 6 additions & 3 deletions Python3 Virtualenv Setup.md
    Original file line number Diff line number Diff line change
    @@ -5,19 +5,19 @@
    * Pip 3

    ```bash
    $ sudo apt-get install python3 python3-pip
    $ brew install python3
    ```

    ##### Installation
    To install virtualenv via pip run:
    ```bash
    $ [sudo] pip3 install virtualenv
    $ pip3 install virtualenv
    ```

    ##### Uasge
    Creation of virtualenv:
    ```bash
    $ virtualenv <name> --no-site-packages
    $ virtualenv -p python3 <name>
    ```

    Activate the virtualenv:
    @@ -29,3 +29,6 @@ Deactivate the virtualenv:
    ```bash
    $ deactivate
    ```


    [About Virtualenv](https://virtualenv.pypa.io/en/stable/)
  4. @akszydelko akszydelko revised this gist Jun 25, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Python3 Virtualenv Setup.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ###Python3 Virtualenv Setup
    ## Python3 Virtualenv Setup

    ##### Requirements
    * Python 3
  5. @akszydelko akszydelko revised this gist Jun 25, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Python3 Virtualenv Setup.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    ###Python3 Virtualenv Setup

    ##### Requirements
    * Python 3
    * Pip 3
  6. @akszydelko akszydelko revised this gist Jun 25, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Python3 Virtualenv Setup.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ $ sudo apt-get install python3 python3-pip
    ##### Installation
    To install virtualenv via pip run:
    ```bash
    $ pip3 install virtualenv
    $ [sudo] pip3 install virtualenv
    ```

    ##### Uasge
  7. @akszydelko akszydelko revised this gist Jun 25, 2016. 2 changed files with 29 additions and 18 deletions.
    18 changes: 0 additions & 18 deletions Python3 Virtualenv Setup
    Original file line number Diff line number Diff line change
    @@ -1,18 +0,0 @@
    To install virtualenv via pip
    $ pip3 install virtualenv

    Note that virtualenv installs to the python3 directory. For me it's:
    $ /usr/local/share/python3/virtualenv

    Create a virtualenvs directory to store all virtual environments
    $ mkdir somewhere/virtualenvs

    Make a new virtual environment with no packages
    $ virtualenv somewhere/virtualenvs/<project-name> --no-site-packages

    To use the virtual environment
    $ cd somewhere/virtualenvs/<project-name>/bin
    $ source activate

    You are now using the virtual environment for <project-name>. To stop:
    $ deactivate
    29 changes: 29 additions & 0 deletions Python3 Virtualenv Setup.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    ##### Requirements
    * Python 3
    * Pip 3

    ```bash
    $ sudo apt-get install python3 python3-pip
    ```

    ##### Installation
    To install virtualenv via pip run:
    ```bash
    $ pip3 install virtualenv
    ```

    ##### Uasge
    Creation of virtualenv:
    ```bash
    $ virtualenv <name> --no-site-packages
    ```

    Activate the virtualenv:
    ```bash
    $ source <name>/bin/activate
    ```

    Deactivate the virtualenv:
    ```bash
    $ deactivate
    ```
  8. @evansneath evansneath revised this gist Feb 17, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Python3 Virtualenv Setup
    Original file line number Diff line number Diff line change
    @@ -14,5 +14,5 @@ To use the virtual environment
    $ cd somewhere/virtualenvs/<project-name>/bin
    $ source activate

    You are no using the virtual environment for <project-name>. To stop:
    You are now using the virtual environment for <project-name>. To stop:
    $ deactivate
  9. @evansneath evansneath renamed this gist Jan 27, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  10. @evansneath evansneath created this gist Jan 21, 2013.
    18 changes: 18 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    To install virtualenv via pip
    $ pip3 install virtualenv

    Note that virtualenv installs to the python3 directory. For me it's:
    $ /usr/local/share/python3/virtualenv

    Create a virtualenvs directory to store all virtual environments
    $ mkdir somewhere/virtualenvs

    Make a new virtual environment with no packages
    $ virtualenv somewhere/virtualenvs/<project-name> --no-site-packages

    To use the virtual environment
    $ cd somewhere/virtualenvs/<project-name>/bin
    $ source activate

    You are no using the virtual environment for <project-name>. To stop:
    $ deactivate