Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Cameron Simpson Newsgroups: comp.lang.python Subject: Re: virtualenv: help me decide Date: Fri, 15 Jan 2016 16:10:49 +1100 Lines: 30 Message-ID: References: Reply-To: python-list@python.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: news.uni-berlin.de 4h1aMdL1dKpSFcZkHLNofwys3g2iqc8mWrDPmT3jIx2g== Return-Path: 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; 'executable': 0.07; 'see.': 0.07; 'subject:help': 0.07; 'cc:addr:python-list': 0.09; '"python"': 0.09; 'likewise': 0.09; 'mkdir': 0.09; 'subject:virtualenv': 0.09; 'python': 0.10; 'suggest': 0.15; '"python': 0.16; '"real"': 0.16; 'eclipse': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'invokes': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'paulo': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'simpson': 0.16; 'virtualenv.': 0.16; 'wrote:': 0.16; 'pfxlen:0': 0.18; 'tree': 0.18; 'settings': 0.20; 'library': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'so.': 0.22; 'libraries': 0.22; 'visible': 0.22; 'cheers,': 0.22; 'cc:no real name:2**0': 0.22; 'header:In-Reply-To:1': 0.24; 'install': 0.25; "i've": 0.25; 'header:User-Agent:1': 0.26; 'installed': 0.26; 'this.': 0.28; 'usable': 0.29; "i'm": 0.30; 'run': 0.33; 'skip:/ 20': 0.33; 'list': 0.34; 'skip:> 10': 0.35; 'but': 0.36; 'development.': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'received:localdomain': 0.38; 'stuff': 0.38; 'anything': 0.38; 'skip:- 20': 0.39; 'build': 0.40; 'questions': 0.40; 'easy': 0.60; '(that': 0.63; 'more': 0.63; 'great': 0.63; 'within': 0.64; 'management': 0.64; 'cameron': 0.66; "they're": 0.66; 'user,': 0.67; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'complaint': 0.84; 'reply-to:addr:python.org': 0.84; 'imagine': 0.96 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:101730 On 15Jan2016 03:37, Paulo da Silva wrote: >I am about to install tensorflow and I am considering to use virtualenv. >Unfortunately I don't know anything about this. It makes a directory tree with its own libraries and "python" and "pip" executables. When you run the "python" executable it invokes the "real" python (that used to make the virtualenv) with the right settings to use the virtualenv's library etc. Likewise the "pip" will automatically install into the virtualenv. Great to experiments, isolation or simply "python like this" setups. >So, a couple of questions before I dig more ... >1. Are all already installed python stuff visible inside virtualenv? If you build the virtualenv with --system-site-packages, yes. Otherwise it is standalone. I like --system-site-packages myself - if I use the OS vendor's package management to obtain somethings then they're available for free in the virtualenv. So my make a virtualenv incanation runs: mkdir the-virtualenv-dir virtualenv -p /path/to/chosen/python --system-site-packages the-virtualenv-dir >2. I used to use eclipse for development. Is it usable within virtualenv? I imagine so. I'm not an eclipse user, but I've never seen a complaint on the list about this. Virtualenv is so easy to use that i suggest you just try it and see. Cheers, Cameron Simpson