Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cygwin Python 2.7 package

Tags:

python

cygwin

I'm on Windows trying to run a Python script. The problem I'm facing is that this script requires Python 2.7. Cygwin is currently installed with the Python 2.6 package. I tried searching for a 2.7 package in the installation wizard but couldn't find any. So I'm kinda stuck. Does anybody have a solution?

like image 920
Vihaan Verma Avatar asked Mar 24 '12 07:03

Vihaan Verma


2 Answers

python 2.7.3-1

Running setup.exe for Cygwin will give you the chance to upgrade Python to 2.7.

If you don't see the 2.7 package, go back and select a different mirror, since not all repositories have all versions available.

like image 195
slashdottir Avatar answered Sep 29 '22 19:09

slashdottir


Install python 2.7 from python.org or EPD, etc. Then put the location of python.exe (default is C:\Python27\python.exe ) in your Environment Variables (Right click "Computer" from start menu -> select "properties" -> Environment Variables )

and remove python 2.6 from cygwin, before you do all this.

like image 42
vivek Avatar answered Sep 29 '22 18:09

vivek