Cygwin and Python3

alvin.hacopian at gmail.com alvin.hacopian at gmail.com
Tue Feb 9 15:30:37 EST 2016


On Tuesday, February 9, 2016 at 12:20:06 PM UTC-8, Fillmore wrote:
> On 2/9/2016 2:29 PM, alvin.hacopian at 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.


More information about the Python-list mailing list