Re: python development environment on a mac

2017-03-15 Thread Kendall Shaw
On 3/15/17, 10:03 AM, "macports-users on behalf of macpo...@parvis.nl" wrote: OK. next problem. he has an older imac and a newer macbook pro (soon), with different versions of osx/macos, so the python system environment will be different. to be able to work on both macs i think v

Re: python development environment on a mac

2017-03-15 Thread macports
> On 15 Mar 2017, at 18:48, Mojca Miklavec > wrote: > > On 15 March 2017 at 18:03, wrote: >> >> OK. next problem. >> >> he has an older imac and a newer macbook pro (soon), with different versions >> of osx/macos, so the python system environment will be different. > > No. If you install

Re: python development environment on a mac

2017-03-15 Thread Mojca Miklavec
On 15 March 2017 at 18:03, wrote: > > OK. next problem. > > he has an older imac and a newer macbook pro (soon), with different versions > of osx/macos, so the python system environment will be different. No. If you install python27 and python36 with MacPorts, he'll have exactly the same versio

Re: python development environment on a mac

2017-03-15 Thread Mojca Miklavec
On 15 March 2017 at 15:49, wrote: > >> On 15 Mar 2017, at 08:51, Mojca Miklavec wrote: >> >> Any reason why you sent the response off-list? > > no excuse but it was 04:15 AM. So just send the same reply to the list then. Mojca

Re: python development environment on a mac

2017-03-15 Thread macports
> On 15 Mar 2017, at 15:49, macpo...@parvis.nl wrote: > > >> On 15 Mar 2017, at 08:51, Mojca Miklavec wrote: >> >> Any reason why you sent the response off-list? > > no excuse but it was 04:15 AM. > >> I can answer, but it makes more sense to continue on the list. >> >> But in short: you do

Re: python development environment on a mac

2017-03-15 Thread macports
> On 15 Mar 2017, at 08:51, Mojca Miklavec wrote: > > Any reason why you sent the response off-list? no excuse but it was 04:15 AM. > I can answer, but it makes more sense to continue on the list. > > But in short: you don't need virtualenv just for the sake of > supporting both python 2 and

Re: python development environment on a mac

2017-03-15 Thread Eric A. Borisch
On Wed, Mar 15, 2017 at 8:39 AM, Alexander Garcia Castro < alexgarc...@gmail.com> wrote: > this may be unrelated but do anyone knows how can I change the python > version in spyder? I have some scripts that work with python 2 and others > with python 3. > You _can_ set it in Preferences: Python i

Re: python development environment on a mac

2017-03-15 Thread Alexander Garcia Castro
this may be unrelated but do anyone knows how can I change the python version in spyder? I have some scripts that work with python 2 and others with python 3. On Wed, Mar 15, 2017 at 7:45 AM, Jeremy Lavergne wrote: > To that end, also check out using pip-tools along with virtualenv. This > will

Re: python development environment on a mac

2017-03-15 Thread Jeremy Lavergne
To that end, also check out using pip-tools along with virtualenv. This will allow you to determine the whole set of dependencies and their versions. Example shell script using pip-tools inside a virtualenv for producing a requirements.txt for `pip install --upgrade -r requirements.txt`: #!/usr/b

Re: python development environment on a mac

2017-03-14 Thread Kendall Shaw
On 03/13/2017 06:28 AM, macpo...@parvis.nl wrote: my son needs for his music studies a python development environment 2.7.13 plus the actual 3.x. his imac is on osx 10.11 el capitan. ... the big question: please explain to me the relation between macports python/ipython/pip/virtualenv and h

Re: python development environment on a mac

2017-03-14 Thread Eric A. Borisch
You might also look at pyNN-spyder-devel (NN=27, 33, etc) -- it can be very nice for someone getting started. (I intend to update the -spyder port to match what is currently -spyder-devel, but haven't for lack of time...) - Eric On Tue, Mar 14, 2017 at 11:54 AM, Joshua Root wrote: > $ which v

Re: python development environment on a mac

2017-03-14 Thread Joshua Root
$ which virtualenv /opt/local/bin/virtualenv $ virtualenv $HOME/PyEnv/python/27 New python executable in /Users/paul/PyEnv/python/27/bin/python Installing setuptools, pip, wheel...done. $ virtualenv $HOME/PyEnv/python/36 New python executable in /Users/paul/PyEnv/python/36/bin/python Installing se

Re: python development environment on a mac

2017-03-14 Thread Mojca Miklavec
On 13 March 2017 at 14:28, wrote: > my son needs for his music studies a python development environment 2.7.13 > plus the actual 3.x. > his imac is on osx 10.11 el capitan. > > so i installed from macports python 27 and 33, ipython, selects: You mean Python 3.6? > questions: > - should i insta

python development environment on a mac

2017-03-13 Thread macports
my son needs for his music studies a python development environment 2.7.13 plus the actual 3.x. his imac is on osx 10.11 el capitan. so i installed from macports python 27 and 33, ipython, selects: python27 @2.7.13_0+readline (active) python36 @3.6.0_0 (active) python2_select @0.0_2 (active)