Cygwin and Python3

alvin.hacopian at gmail.com alvin.hacopian at gmail.com
Tue Feb 9 14:29:22 EST 2016


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


More information about the Python-list mailing list