Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #109346
| Path | csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Marc Brooks <marcwbrooks@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: How to create development Python environment on Linux. |
| Date | Wed, 1 Jun 2016 20:30:50 -0400 |
| Lines | 41 |
| Message-ID | <mailman.81.1464857527.1839.python-list@python.org> (permalink) |
| References | <815aa265-45c4-40a4-860d-beb89cd9a78e@googlegroups.com> <CAKJDb-NxpmGihicjxHt3W3i5OUPWH22-3OO5OzwM+fc6jOV=Dg@mail.gmail.com> <mailman.19.1463415968.19823.python-list@python.org> <1833e379-3401-4d1b-9551-2760c72e01af@googlegroups.com> <CAN+KW4pNVYSuA4fQ+_+gOp-RPPvetU0D+b_9kVCOAjw08LGD+A@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | news.uni-berlin.de BUbHNg+CEJK9JzovcZTS6wOR1I7ETybZhXrg1hwWDXFw== |
| Return-Path | <marcwbrooks@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'bootstrap': 0.07; 'dev': 0.07; 'cc:addr:python-list': 0.09; 'subject:How': 0.09; 'macros': 0.09; 'subject:create': 0.09; 'received:209.85.218': 0.10; 'python': 0.10; '2.7': 0.13; 'wed,': 0.15; '(but': 0.15; 'interpreter': 0.15; '(another': 0.16; '2016': 0.16; 'headaches': 0.16; 'point.\xc2\xa0': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'sudo': 0.16; 'wrote:': 0.16; 'script.': 0.18; '>': 0.18; 'creates': 0.18; 'email addr:gmail.com>': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'lawrence': 0.22; 'libraries': 0.22; 'cc:no real name:2**0': 0.22; 'header:In-Reply-To:1': 0.24; 'install': 0.25; 'installed': 0.26; 'point.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'this.': 0.28; "skip:' 10": 0.28; 'for,': 0.29; 'asked': 0.29; 'url:mailman': 0.30; 'skip:. 10': 0.32; 'run': 0.33; 'source': 0.33; 'url:python': 0.33; 'skip:/ 20': 0.33; 'url:listinfo': 0.34; 'add': 0.34; 'received:google.com': 0.35; 'possible,': 0.35; 'but': 0.36; 'instead': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'possible': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'environment.': 0.37; 'starting': 0.37; 'version': 0.38; 'received:209': 0.38; 'several': 0.38; 'skip:p 20': 0.38; 'sure': 0.39; 'system.': 0.39; 'url:mail': 0.40; 'collection': 0.60; 'save': 0.60; 'latest': 0.64; 'mar': 0.65; 'future.': 0.67; 'addon': 0.84; 'moderately': 0.84; 'pip': 0.84; 'fish': 0.91; 'ware': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=cS1SGuA83IjStQgW+1M4CS+cTcQbgBTssB1v4HLxD/I=; b=ajwuEA6/AC4D825TSUPIe1CDd2oJXoYzkmkNpZwzy/zEc1s7pi2CPHkBWWYXxqyX24 j3HueHAHFwDtnrOjBhYRtG3sHzkDVB5xZNVpmgne5q0EVFvFJ/QU4NcQZ/CuHKsigryj 55OjWPdJF5s4TQH+dDiO1tFVjVNoM/Bd/TrNUxGTY7cRQ6QOG/wEqtS+RwAuadfUgEQK BIRtr8ph7uI5cCdWZ5cG3lBvr4RRBopRvUksFYcJF5JLxfv9U3nV19AmpW6HEwKyBtWc 3hhmpJ3LZ86cnaFWqZ9zO2nwO39Ln2DE5cHqwqeZWj+qXfIOymJBKSzTOrYA1scYy1uw IELQ== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=cS1SGuA83IjStQgW+1M4CS+cTcQbgBTssB1v4HLxD/I=; b=ifqMvyZQXIqhHrRwDkE7o62jFaFbSwoOzs5G+B6CFNyp/18kH03Ynk6WkF+xybYjRa ctTdvgSUe8LaU6aCKjq602YqUMfytr8xsDdG3rHY2oWCEJewBX0sU0DRKOHHYhictEzx I3G6hEoDCxwIWIXhVB0qWqInAR89lXFAf402/AnHezGIm/rWIEFymCWjwjN+n31XWAaL B7cCSjBTK/jU/BAGPgE39MfVLrDlutWCARhN1yIPrAYe6Ndq3/Rc8SSpzRCc+sMOauf8 Wcl0qsK0jTUs88PtWw1SLZKHjEFLi2qYH/rUX61XskwIT4YRmzXr44jum95Iwb3mw4Sz GDUA== |
| X-Gm-Message-State | ALyK8tKiKORNnVGDow9yFkHRQjeyQk/CcMjlXpgTioiJQfoIOOTGXZC+7LvikOk0CvOYb+lOi/gx0XuiuKhd7g== |
| X-Received | by 10.157.61.68 with SMTP id a62mr4898829otc.183.1464827450840; Wed, 01 Jun 2016 17:30:50 -0700 (PDT) |
| In-Reply-To | <1833e379-3401-4d1b-9551-2760c72e01af@googlegroups.com> |
| X-Mailman-Approved-At | Thu, 02 Jun 2016 04:52:06 -0400 |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.22 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.22 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <CAN+KW4pNVYSuA4fQ+_+gOp-RPPvetU0D+b_9kVCOAjw08LGD+A@mail.gmail.com> |
| X-Mailman-Original-References | <815aa265-45c4-40a4-860d-beb89cd9a78e@googlegroups.com> <CAKJDb-NxpmGihicjxHt3W3i5OUPWH22-3OO5OzwM+fc6jOV=Dg@mail.gmail.com> <mailman.19.1463415968.19823.python-list@python.org> <1833e379-3401-4d1b-9551-2760c72e01af@googlegroups.com> |
| Xref | csiph.com comp.lang.python:109346 |
Show key headers only | View raw
I am pretty sure (but not 100%) that the pip that virtualenv installs when it first creates the virtualenv is the version of pip installed on the system. Here's the process I used to bootstrap a new Python 2.7 dev environment. 1. Download and install the latest version of pip as sudo so it's system wide. 2. Install virtualenv and virtualenvwrapper (a collection of utilities scripts/aliases for virtualenv). 3. Update my .bash_profile to source the virtualenvwrapper script. Then for any new virtualenvs I just type 'mkvirtualenv <foo>' I can update the version of pip in the virtualenv or run pip install for any of my required libraries at that point. One wrinkle that can come up is if you want to use virtualenvwrapper and you are not using bash. Fish (another moderately popular shell) has an addon that mimics the macros that virtualenvwrapper provides. Mar On Wed, Jun 1, 2016 at 8:17 PM, Lawrence D’Oliveiro <lawrencedo99@gmail.com> wrote: > On Tuesday, May 17, 2016 at 4:26:23 AM UTC+12, Zachary Ware wrote: > > Not what you asked for, but I would encourage you to look into whether > > it's possible for you to use Python 3 instead of Python 2 for what > > you're doing. If it's possible, starting with Python 3 will save you > > several headaches in the future. > > Let me add my vote for this. > > > sys.prefix is baked in at compile time of the python interpreter ... > > ldo@theon:~> ~/virtualenv/jupyter/bin/python -c "import sys; > print(sys.prefix)" > /home/ldo/virtualenv/jupyter > -- > https://mail.python.org/mailman/listinfo/python-list >
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to create development Python environment on Linux. redirect.null@gmail.com - 2016-05-16 04:22 -0700
Re: How to create development Python environment on Linux. redirect.null@gmail.com - 2016-05-16 04:29 -0700
Re: How to create development Python environment on Linux. Zachary Ware <zachary.ware+pylist@gmail.com> - 2016-05-16 11:25 -0500
Re: How to create development Python environment on Linux. Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-01 17:17 -0700
Re: How to create development Python environment on Linux. Marc Brooks <marcwbrooks@gmail.com> - 2016-06-01 20:30 -0400
Re: How to create development Python environment on Linux. redirect.null@gmail.com - 2016-05-16 14:28 -0700
Re: How to create development Python environment on Linux. Michael Selik <michael.selik@gmail.com> - 2016-05-16 21:56 +0000
Re: How to create development Python environment on Linux. Zachary Ware <zachary.ware+pylist@gmail.com> - 2016-05-17 10:32 -0500
csiph-web