Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #102729 > unrolled thread
| Started by | Fillmore <fillmore_remove@hotmail.com> |
|---|---|
| First post | 2016-02-09 11:41 -0500 |
| Last post | 2016-02-11 12:40 -0800 |
| Articles | 17 — 8 participants |
Back to article view | Back to comp.lang.python
Cygwin and Python3 Fillmore <fillmore_remove@hotmail.com> - 2016-02-09 11:41 -0500
Re: Cygwin and Python3 alvin.hacopian@gmail.com - 2016-02-09 11:29 -0800
Re: Cygwin and Python3 Fillmore <fillmore_remove@hotmail.com> - 2016-02-09 15:19 -0500
Re: Cygwin and Python3 alvin.hacopian@gmail.com - 2016-02-09 12:30 -0800
Re: Cygwin and Python3 Fillmore <fillmore_remove@hotmail.com> - 2016-02-09 16:47 -0500
Re: Cygwin and Python3 Fillmore <fillmore_remove@hotmail.com> - 2016-02-09 17:36 -0500
Re: Cygwin and Python3 Larry Hudson <orgnut@yahoo.com> - 2016-02-09 19:26 -0800
Re: Cygwin and Python3 Mike S <mscir@yahoo.com> - 2016-02-09 19:39 -0800
Re: Cygwin and Python3 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-02-10 13:05 +0000
Re: Cygwin and Python3 Mike S <mscir@yahoo.com> - 2016-02-10 15:05 -0800
Re: Cygwin and Python3 blindanagram@nowhere.net - 2016-02-11 07:46 +0000
Re: Cygwin and Python3 Mike S <mscir@yahoo.com> - 2016-02-11 01:21 -0800
Re: Cygwin and Python3 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-02-11 13:20 +0000
Re: Cygwin and Python3 Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2016-02-10 22:26 +0100
Re: Cygwin and Python3 Terry Reedy <tjreedy@udel.edu> - 2016-02-10 16:59 -0500
Re: Cygwin and Python3 Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2016-02-11 19:18 +0100
Re: Cygwin and Python3 alvin.hacopian@gmail.com - 2016-02-11 12:40 -0800
| From | Fillmore <fillmore_remove@hotmail.com> |
|---|---|
| Date | 2016-02-09 11:41 -0500 |
| Subject | Cygwin and Python3 |
| Message-ID | <n9d4r9$9s2$1@gioia.aioe.org> |
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
[toc] | [next] | [standalone]
| From | alvin.hacopian@gmail.com |
|---|---|
| Date | 2016-02-09 11:29 -0800 |
| Message-ID | <09fc58ce-8106-4266-8a3d-13b1dfcedc90@googlegroups.com> |
| In reply to | #102729 |
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
[toc] | [prev] | [next] | [standalone]
| From | Fillmore <fillmore_remove@hotmail.com> |
|---|---|
| Date | 2016-02-09 15:19 -0500 |
| Message-ID | <n9dhkr$11qi$5@gioia.aioe.org> |
| In reply to | #102730 |
On 2/9/2016 2:29 PM, alvin.hacopian@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
[toc] | [prev] | [next] | [standalone]
| From | alvin.hacopian@gmail.com |
|---|---|
| Date | 2016-02-09 12:30 -0800 |
| Message-ID | <98ba5ab8-726f-4939-8a88-b56df4701b05@googlegroups.com> |
| In reply to | #102731 |
On Tuesday, February 9, 2016 at 12:20:06 PM UTC-8, Fillmore wrote: > On 2/9/2016 2:29 PM, alvin.hacopian@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.
[toc] | [prev] | [next] | [standalone]
| From | Fillmore <fillmore_remove@hotmail.com> |
|---|---|
| Date | 2016-02-09 16:47 -0500 |
| Message-ID | <n9dmqf$1au7$1@gioia.aioe.org> |
| In reply to | #102732 |
On 2/9/2016 3:30 PM, alvin.hacopian@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
[toc] | [prev] | [next] | [standalone]
| From | Fillmore <fillmore_remove@hotmail.com> |
|---|---|
| Date | 2016-02-09 17:36 -0500 |
| Message-ID | <n9dpl5$1g3r$1@gioia.aioe.org> |
| In reply to | #102734 |
On 2/9/2016 4:47 PM, Fillmore wrote: > On 2/9/2016 3:30 PM, alvin.hacopian@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
[toc] | [prev] | [next] | [standalone]
| From | Larry Hudson <orgnut@yahoo.com> |
|---|---|
| Date | 2016-02-09 19:26 -0800 |
| Message-ID | <3ZCdnZc2PpJ3MCfLnZ2dnUU7-RWdnZ2d@giganews.com> |
| In reply to | #102729 |
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 -=-
[toc] | [prev] | [next] | [standalone]
| From | Mike S <mscir@yahoo.com> |
|---|---|
| Date | 2016-02-09 19:39 -0800 |
| Message-ID | <n9eb86$447$1@dont-email.me> |
| In reply to | #102754 |
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/
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2016-02-10 13:05 +0000 |
| Message-ID | <mailman.9.1455109560.22075.python-list@python.org> |
| In reply to | #102755 |
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
[toc] | [prev] | [next] | [standalone]
| From | Mike S <mscir@yahoo.com> |
|---|---|
| Date | 2016-02-10 15:05 -0800 |
| Message-ID | <n9gfin$h32$1@dont-email.me> |
| In reply to | #102759 |
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.
[toc] | [prev] | [next] | [standalone]
| From | blindanagram@nowhere.net |
|---|---|
| Date | 2016-02-11 07:46 +0000 |
| Message-ID | <I9KdnezirdTDoSHLnZ2dnUU78eWdnZ2d@brightview.co.uk> |
| In reply to | #102775 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Mike S <mscir@yahoo.com> |
|---|---|
| Date | 2016-02-11 01:21 -0800 |
| Message-ID | <n9hjl6$n54$1@dont-email.me> |
| In reply to | #102790 |
On 2/10/2016 11:46 PM, blindanagram@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.
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2016-02-11 13:20 +0000 |
| Message-ID | <mailman.49.1455196839.22075.python-list@python.org> |
| In reply to | #102790 |
On 11/02/2016 07:46, blindanagram@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
[toc] | [prev] | [next] | [standalone]
| From | Benoit Izac <use.reply.to@INVALID.ADDRESS> |
|---|---|
| Date | 2016-02-10 22:26 +0100 |
| Message-ID | <87lh6sxnni.fsf@izac.org> |
| In reply to | #102754 |
Larry Hudson <orgnut@yahoo.com> 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
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2016-02-10 16:59 -0500 |
| Message-ID | <mailman.21.1455141598.22075.python-list@python.org> |
| In reply to | #102772 |
On 2/10/2016 4:26 PM, Benoit Izac wrote: > Larry Hudson <orgnut@yahoo.com> 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
[toc] | [prev] | [next] | [standalone]
| From | Benoit Izac <use.reply.to@INVALID.ADDRESS> |
|---|---|
| Date | 2016-02-11 19:18 +0100 |
| Message-ID | <87k2mbxg8r.fsf@izac.org> |
| In reply to | #102773 |
Terry Reedy <tjreedy@udel.edu> 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
[toc] | [prev] | [next] | [standalone]
| From | alvin.hacopian@gmail.com |
|---|---|
| Date | 2016-02-11 12:40 -0800 |
| Message-ID | <ed21d95f-84ae-4d87-aff4-de7e6effccd6@googlegroups.com> |
| In reply to | #102826 |
On Thursday, February 11, 2016 at 10:18:53 AM UTC-8, Benoit Izac wrote: > Terry Reedy <tjreedy@udel.edu> 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.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web