Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101728 > unrolled thread

virtualenv: help me decide

Started byPaulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt>
First post2016-01-15 03:37 +0000
Last post2016-01-15 13:50 -0500
Articles 4 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  virtualenv: help me decide Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2016-01-15 03:37 +0000
    Re: virtualenv: help me decide Cameron Simpson <cs@zip.com.au> - 2016-01-15 16:10 +1100
      Re: virtualenv: help me decide Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2016-01-15 18:17 +0000
        Re: virtualenv: help me decide Joel Goldstick <joel.goldstick@gmail.com> - 2016-01-15 13:50 -0500

#101728 — virtualenv: help me decide

FromPaulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt>
Date2016-01-15 03:37 +0000
Subjectvirtualenv: help me decide
Message-ID<n79pij$1ni6$1@gioia.aioe.org>
Hi all!

I am about to install tensorflow and I am considering to use virtualenv.
Unfortunately I don't know anything about this.
So, a couple of questions before I dig more ...
1. Are all already installed python stuff visible inside virtualenv?
2. I used to use eclipse for development. Is it usable within virtualenv?

Thanks for any help

[toc] | [next] | [standalone]


#101730

FromCameron Simpson <cs@zip.com.au>
Date2016-01-15 16:10 +1100
Message-ID<mailman.179.1452834795.13488.python-list@python.org>
In reply to#101728
On 15Jan2016 03:37, Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> 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 <cs@zip.com.au>

[toc] | [prev] | [next] | [standalone]


#101771

FromPaulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt>
Date2016-01-15 18:17 +0000
Message-ID<n7bd3h$dmc$1@gioia.aioe.org>
In reply to#101730
Às 05:10 de 15-01-2016, Cameron Simpson escreveu:
> On 15Jan2016 03:37, Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> wrote:
...
> Virtualenv is so easy to use that i suggest you
> just try it and see.
> 

Thank you very much Cameron. Being easy, I'll give it a try with a small
test program and see how it works.

Paulo

[toc] | [prev] | [next] | [standalone]


#101776

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2016-01-15 13:50 -0500
Message-ID<mailman.29.1452883827.15297.python-list@python.org>
In reply to#101771
On Fri, Jan 15, 2016 at 1:17 PM, Paulo da Silva <
p_s_d_a_s_i_l_v_a_ns@netcabo.pt> wrote:

> Às 05:10 de 15-01-2016, Cameron Simpson escreveu:
> > On 15Jan2016 03:37, Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt>
> wrote:
> ...
> > Virtualenv is so easy to use that i suggest you
> > just try it and see.
> >
>
> Thank you very much Cameron. Being easy, I'll give it a try with a small
> test program and see how it works.
>
> Paulo
>
> There is another wrapper that uses virtualenv called virtualenvwrapper
here:
http://virtualenvwrapper.readthedocs.org/en/latest/install.html#shell-startup-file

Its great.  Takes 10 minutes to set up and another 10 minutes to figure it
all out

> --
> https://mail.python.org/mailman/listinfo/python-list
>



-- 
Joel Goldstick
http://joelgoldstick.com/stats/birthdays

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web