Re: Cygwin and Python3

2016-02-11 Thread Mike S via Python-list

On 2/10/2016 11:46 PM, blindanag...@nowhere.net wrote:

On 10/02/2016 23:05, Mike S wrote:

On 2/10/2016 5:05 AM, Mark Lawrence wrote:


[snip]

Have you seen this?
http://www.davidbaumgold.com/tutorials/set-up-python-windows/



I have now, but I'm perfectly happy with the free versions of Visual
Studio.


[snip]

I don't see any references to VS on that page so I don't know what
you're referring to.


I suspect that Mark is reacting indirectly to the misleading implication
on that page that it is necessary to install Cygwin if you want to
develop Python code on Windows.


Thanks for explaining, I had no idea what that comment might be based on.

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


Re: Cygwin and Python3

2016-02-11 Thread Mark Lawrence

On 11/02/2016 07:46, blindanag...@nowhere.net wrote:

On 10/02/2016 23:05, Mike S wrote:

On 2/10/2016 5:05 AM, Mark Lawrence wrote:


[snip]

Have you seen this?
http://www.davidbaumgold.com/tutorials/set-up-python-windows/



I have now, but I'm perfectly happy with the free versions of Visual
Studio.


[snip]

I don't see any references to VS on that page so I don't know what
you're referring to.


I suspect that Mark is reacting indirectly to the misleading implication
on that page that it is necessary to install Cygwin if you want to
develop Python code on Windows.



Absolutely correct, marks out of ten, fifteen :)

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

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


Re: Cygwin and Python3

2016-02-11 Thread alvin . hacopian
On Thursday, February 11, 2016 at 10:18:53 AM UTC-8, Benoit Izac wrote:
> Terry Reedy  writes:
> 
> >>> Since Python runs natively in Windows, why are you trying to run it
> >>> with Cygwin? I'm not implying that you shouldn't, just offhand I don't
> >>> see a reason for it.
> >>
> >> I do it because it's easier to install third party packages, those that
> >> need an external library to run. Cygwin come with a lot of lib* and
> >> lib*-devel that permit to just run `pip install xxx' if not already
> >> packaged. I gave a try on the native Windows version and Anaconda but
> >> there is at least one package that I could not run (and I loosed
> >> a lot of time to compile a bunch of libraries).
> >>
> >> Example of package: pyproj (proj4), openpyxl with lxml (libxml2,
> >> libxslt) and pillow (libjpeg, zlib, libtiff, ...), psycopg2 (libpq).
> >
> > I belive these are all available at
> > http://www.lfd.uci.edu/~gohlke/pythonlibs/
> 
> How do you know when an upgrade is available?
> 
> -- 
> Benoit Izac

This thread also seems to address windows lack of support with linux. Only if 
windows had a linux command line support instead of using power shell. Mac is 
not preferred OS and its just a matter of time since windows is obsolete. 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Cygwin and Python3

2016-02-11 Thread Benoit Izac
Terry Reedy  writes:

>>> Since Python runs natively in Windows, why are you trying to run it
>>> with Cygwin? I'm not implying that you shouldn't, just offhand I don't
>>> see a reason for it.
>>
>> I do it because it's easier to install third party packages, those that
>> need an external library to run. Cygwin come with a lot of lib* and
>> lib*-devel that permit to just run `pip install xxx' if not already
>> packaged. I gave a try on the native Windows version and Anaconda but
>> there is at least one package that I could not run (and I loosed
>> a lot of time to compile a bunch of libraries).
>>
>> Example of package: pyproj (proj4), openpyxl with lxml (libxml2,
>> libxslt) and pillow (libjpeg, zlib, libtiff, ...), psycopg2 (libpq).
>
> I belive these are all available at
> http://www.lfd.uci.edu/~gohlke/pythonlibs/

How do you know when an upgrade is avaible?

-- 
Benoit Izac
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Cygwin and Python3

2016-02-11 Thread Benoit Izac
Terry Reedy  writes:

>>> Since Python runs natively in Windows, why are you trying to run it
>>> with Cygwin? I'm not implying that you shouldn't, just offhand I don't
>>> see a reason for it.
>>
>> I do it because it's easier to install third party packages, those that
>> need an external library to run. Cygwin come with a lot of lib* and
>> lib*-devel that permit to just run `pip install xxx' if not already
>> packaged. I gave a try on the native Windows version and Anaconda but
>> there is at least one package that I could not run (and I loosed
>> a lot of time to compile a bunch of libraries).
>>
>> Example of package: pyproj (proj4), openpyxl with lxml (libxml2,
>> libxslt) and pillow (libjpeg, zlib, libtiff, ...), psycopg2 (libpq).
>
> I belive these are all available at
> http://www.lfd.uci.edu/~gohlke/pythonlibs/

How do you know when an upgrade is available?

-- 
Benoit Izac
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Cygwin and Python3

2016-02-10 Thread Benoit Izac
Larry Hudson  writes:

>> Hi, I am having a hard time making my Cygwin run Python 3.5 (or
>> Python 2.7 for that matter).
>> The command will hang and nothing happens.
>
> Just curious...
>
> Since Python runs natively in Windows, why are you trying to run it
> with Cygwin? I'm not implying that you shouldn't, just offhand I don't
> see a reason for it.

I do it because it's easier to install third party packages, those that
need an external library to run. Cygwin come with a lot of lib* and
lib*-devel that permit to just run `pip install xxx' if not already
packaged. I gave a try on the native Windows version and Anaconda but
there is at least one package that I could not run (and I loosed
a lot of time to compile a bunch of libraries).

Example of package: pyproj (proj4), openpyxl with lxml (libxml2,
libxslt) and pillow (libjpeg, zlib, libtiff, ...), psycopg2 (libpq).

--
Benoit Izac
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Cygwin and Python3

2016-02-10 Thread Terry Reedy

On 2/10/2016 4:26 PM, Benoit Izac wrote:

Larry Hudson  writes:



Since Python runs natively in Windows, why are you trying to run it
with Cygwin? I'm not implying that you shouldn't, just offhand I don't
see a reason for it.


I do it because it's easier to install third party packages, those that
need an external library to run. Cygwin come with a lot of lib* and
lib*-devel that permit to just run `pip install xxx' if not already
packaged. I gave a try on the native Windows version and Anaconda but
there is at least one package that I could not run (and I loosed
a lot of time to compile a bunch of libraries).

Example of package: pyproj (proj4), openpyxl with lxml (libxml2,
libxslt) and pillow (libjpeg, zlib, libtiff, ...), psycopg2 (libpq).


I belive these are all available at
http://www.lfd.uci.edu/~gohlke/pythonlibs/

--
Terry Jan Reedy

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


Re: Cygwin and Python3

2016-02-10 Thread blindanagram
On 10/02/2016 23:05, Mike S wrote:
> On 2/10/2016 5:05 AM, Mark Lawrence wrote:

[snip]
>>> Have you seen this?
>>> http://www.davidbaumgold.com/tutorials/set-up-python-windows/
>>>
>>
>> I have now, but I'm perfectly happy with the free versions of Visual
>> Studio.

[snip]
> I don't see any references to VS on that page so I don't know what
> you're referring to.

I suspect that Mark is reacting indirectly to the misleading implication
on that page that it is necessary to install Cygwin if you want to
develop Python code on Windows.

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


Re: Cygwin and Python3

2016-02-10 Thread Mark Lawrence

On 10/02/2016 03:39, Mike S via Python-list wrote:

On 2/9/2016 7:26 PM, Larry Hudson wrote:

On 02/09/2016 08:41 AM, Fillmore wrote:


Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python
2.7 for that matter).
The command will hang and nothing happens.



Just curious...

Since Python runs natively in Windows, why are you trying to run it with
Cygwin?
I'm not implying that you shouldn't, just offhand I don't see a reason
for it.

  -=- Larry -=-



Have you seen this?
http://www.davidbaumgold.com/tutorials/set-up-python-windows/



I have now, but I'm perfectly happy with the free versions of Visual Studio.

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

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


Re: Cygwin and Python3

2016-02-10 Thread Mike S via Python-list

On 2/10/2016 5:05 AM, Mark Lawrence wrote:

On 10/02/2016 03:39, Mike S via Python-list wrote:

On 2/9/2016 7:26 PM, Larry Hudson wrote:

On 02/09/2016 08:41 AM, Fillmore wrote:


Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python
2.7 for that matter).
The command will hang and nothing happens.



Just curious...

Since Python runs natively in Windows, why are you trying to run it with
Cygwin?
I'm not implying that you shouldn't, just offhand I don't see a reason
for it.

  -=- Larry -=-



Have you seen this?
http://www.davidbaumgold.com/tutorials/set-up-python-windows/



I have now, but I'm perfectly happy with the free versions of Visual
Studio.


I was referring to the procedure in general, and what looked like an 
important step to include.


So it looks like the terminal can find ssh and git, but not python. 
That's understandable, since we didn't use Cygwin to install Python. To 
tell Cygwin how to find Python, run the following command:

$ echo "PATH=\$PATH:/cygdrive/c/Python32" >> .bash_profile

I don't see any references to VS on that page so I don't know what 
you're referring to.



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


Re: Cygwin and Python3

2016-02-09 Thread Fillmore

On 2/9/2016 2:29 PM, alvin.hacop...@gmail.com wrote:




$ ls -l /usr/bin/python
rm /usr/bin/python

$ ln -s /usr/bin/python /usr/bin/python3.2m.exe

$ /usr/bin/python --version
Python 3.2.5

$  pydoc modules



Still no luck (:

 ~
$ python --version
Python 3.5.1

 ~
$ python
(..hangs indefinitely)
^C

 ~
$ pydoc modules
-bash: pydoc: command not found

 ~
$ echo $PATH
/usr/local/bin:/usr/bin:/cygdrive/c/Python27:/cygdrive/c/
Python27/Scripts:/cygdrive/c/Windows/system32:/cygdrive/
c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/
c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/
c/Program Files (x86)/Common Files/Roxio Shared/OEM/
DLLShared:/cygdrive/c/Program Files (x86)/Common Files/
Roxio Shared/OEM/DLLShared:/cygdrive/c/Program
 Files (x86)/Common Files/Roxio Shared/OEM/12.0/
DLLShared:/cygdrive/c/Program Files (x86)/Roxio/OEM/
AudioCore:/cygdrive/c/unxutils/bin:/cygdrive/c/unxutils
/usr/local/wbin:/cygdrive/c/strawberry/c/bin:/cygdrive/
c/strawberry/perl/site/bin:/cygdrive/c/strawberry/
perl/bin:/cygdrive/c/Program Files/Intel/WiFi/bin:/
cygdrive/c/Program Files/Common Files/Intel/
WirelessCommon:/cygdrive/c/Users/user/AppData/Local/
Programs/Python/Python35/Scripts:/cygdrive/c/Users/
user/AppData/Local/Programs/Python/Python35:%APPDATA%
/Python/Scripts:/cygdrive/c/Program Files/Intel/WiFi/
bin:/cygdrive/c/Program Files/Common Files/Intel/
WirelessCommon


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


Re: Cygwin and Python3

2016-02-09 Thread alvin . hacopian
On Tuesday, February 9, 2016 at 12:20:06 PM UTC-8, Fillmore wrote:
> On 2/9/2016 2:29 PM, alvin.hacop...@gmail.com wrote:
> 
> 
> >
> > $ ls -l /usr/bin/python
> > rm /usr/bin/python
> >
> > $ ln -s /usr/bin/python /usr/bin/python3.2m.exe
> >
> > $ /usr/bin/python --version
> > Python 3.2.5
> >
> > $  pydoc modules
> >
> 
> Still no luck (:
> 
>   ~
> $ python --version
> Python 3.5.1
> 
>   ~
> $ python
> (..hangs indefinitely)
> ^C
> 
>   ~
> $ pydoc modules
> -bash: pydoc: command not found
> 
>   ~
> $ echo $PATH
> /usr/local/bin:/usr/bin:/cygdrive/c/Python27:/cygdrive/c/
> Python27/Scripts:/cygdrive/c/Windows/system32:/cygdrive/
> c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/
> c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/
> c/Program Files (x86)/Common Files/Roxio Shared/OEM/
> DLLShared:/cygdrive/c/Program Files (x86)/Common Files/
> Roxio Shared/OEM/DLLShared:/cygdrive/c/Program
>   Files (x86)/Common Files/Roxio Shared/OEM/12.0/
> DLLShared:/cygdrive/c/Program Files (x86)/Roxio/OEM/
> AudioCore:/cygdrive/c/unxutils/bin:/cygdrive/c/unxutils
> /usr/local/wbin:/cygdrive/c/strawberry/c/bin:/cygdrive/
> c/strawberry/perl/site/bin:/cygdrive/c/strawberry/
> perl/bin:/cygdrive/c/Program Files/Intel/WiFi/bin:/
> cygdrive/c/Program Files/Common Files/Intel/
> WirelessCommon:/cygdrive/c/Users/user/AppData/Local/
> Programs/Python/Python35/Scripts:/cygdrive/c/Users/
> user/AppData/Local/Programs/Python/Python35:%APPDATA%
> /Python/Scripts:/cygdrive/c/Program Files/Intel/WiFi/
> bin:/cygdrive/c/Program Files/Common Files/Intel/
> WirelessCommon

When you run the cygwin installer you have the option of installing 2.7 and 
3.2.5, by default it will install 2.7 and 3.2 together. After running the 
installer run whereis python and use the alternatives to change it or use 
python3 instead of python #!/usr/bin/python3

Hope this helps.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Cygwin and Python3

2016-02-09 Thread alvin . hacopian
On Tuesday, February 9, 2016 at 8:41:43 AM UTC-8, Fillmore wrote:
> Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python 2.7 
> for that matter).
> The command will hang and nothing happens.
> 
> A cursory search on the net reveals many possibilities, which might mean a lot
> of trial and error, which I would very much like to avoid.
> 
> Any suggestions on how I can get cygwin and Python3.5 to play together like 
> brother and sister?
> 
> thanks

Please see bellow:
$ whereis python
python: /usr/bin/python /usr/bin/python2.7-config /usr/bin/python3.2 
/usr/bin/python3.2m-config /usr/lib/python2.6 /usr/lib/python2.7 
/usr/lib/python3.2 /usr/local/bin/python /usr/local/bin/python2.7 
/usr/local/lib/python2.7 /usr/include/python2.7 /usr/include/python3.2m 
/usr/share/man/man1/python.1.gz

$ echo $PATH
/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program
 Files (x86)/Vim/vim73:/cygdrive/c/Program Files/WIDCOMM/Bluetooth 
Software:/cygdrive/c/Program Files/WIDCOMM/Bluetooth 
Software/syswow64:/cygdrive/c/Program Files 
(x86)/Skype/Phone:/cygdrive/c/opscode/chef/bin:/cygdrive/c/opscode/chef/embedded/bin:/opt/apache2/bin:/cygdrive/c/Program
 Files (x86)/QuickTime/QTSystem:/usr/sbin:/usr/lib/lapack

$ ls -l /usr/bin/python
rm /usr/bin/python

$ ln -s /usr/bin/python /usr/bin/python3.2m.exe

$ /usr/bin/python --version
Python 3.2.5

$  pydoc modules
-- 
https://mail.python.org/mailman/listinfo/python-list


Cygwin and Python3

2016-02-09 Thread Fillmore


Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python 2.7 for 
that matter).
The command will hang and nothing happens.

A cursory search on the net reveals many possibilities, which might mean a lot
of trial and error, which I would very much like to avoid.

Any suggestions on how I can get cygwin and Python3.5 to play together like 
brother and sister?

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


Re: Cygwin and Python3

2016-02-09 Thread Fillmore

On 2/9/2016 3:30 PM, alvin.hacop...@gmail.com wrote:



When you run the cygwin installer you have the option of installing 2.7

> and 3.2.5, by default it will install 2.7 and 3.2 together.
> After running the installer run whereis python and use the alternatives
> to change it or use python3 instead of python #!/usr/bin/python3


Hope this helps.



I see. I was trying to do it the Perl way. I simply linked the 
strawberry perl.exe from cygwin environemnt and it replaced the built in 
perl that sucked.

OK. Backtrack. I'll try with a purely cygwin solution...

Thank you


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


Re: Cygwin and Python3

2016-02-09 Thread Fillmore

On 2/9/2016 4:47 PM, Fillmore wrote:

On 2/9/2016 3:30 PM, alvin.hacop...@gmail.com wrote:



When you run the cygwin installer you have the option of installing 2.7

 > and 3.2.5, by default it will install 2.7 and 3.2 together.
 > After running the installer run whereis python and use the alternatives
 > to change it or use python3 instead of python #!/usr/bin/python3


Hope this helps.



I see. I was trying to do it the Perl way. I simply linked the
strawberry perl.exe from cygwin environemnt and it replaced the built in
perl that sucked.
OK. Backtrack. I'll try with a purely cygwin solution...

Thank you




$ python --version
Python 2.7.10

$ python3 --version
Python 3.4.3

Thank you, Alvin

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


Re: Cygwin and Python3

2016-02-09 Thread Larry Hudson via Python-list

On 02/09/2016 08:41 AM, Fillmore wrote:


Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python 2.7 for 
that matter).
The command will hang and nothing happens.



Just curious...

Since Python runs natively in Windows, why are you trying to run it with Cygwin?
I'm not implying that you shouldn't, just offhand I don't see a reason for it.

 -=- Larry -=-


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


Re: Cygwin and Python3

2016-02-09 Thread Mike S via Python-list

On 2/9/2016 7:26 PM, Larry Hudson wrote:

On 02/09/2016 08:41 AM, Fillmore wrote:


Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python
2.7 for that matter).
The command will hang and nothing happens.



Just curious...

Since Python runs natively in Windows, why are you trying to run it with
Cygwin?
I'm not implying that you shouldn't, just offhand I don't see a reason
for it.

  -=- Larry -=-



Have you seen this?
http://www.davidbaumgold.com/tutorials/set-up-python-windows/

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