Re: Cygwin and Python3
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
Re: Cygwin and Python3
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
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