1

I installed Python 2.7.9 from (https://www.python.org/downloads/windows/), and then Cygwin 2.8.59. But I had problems when installing numpy. pip install numpy error: Unable to find vcvarsall.bat

So I uninstalled python using set-x86.exe (Cygwin installer). Now my commands python and pip are these:

    $ which python
    /cygdrive/c/Python27/python
    $ which pip
    /cygdrive/c/Python27/Scripts/pip

I could installed numpy using pip, and execute files by "python test.py". I, however, cannot use interactive console. If I type

    $python

the console freezes and I cannot do anything other than Ctrl+C. How should I do to use the command, "python"?

jun
  • 27
  • 4
  • is there a special need to have cygwin alongside python? If not, there are plenty of python distributions for windows. I'm using e.g. pythonxy on windows... – jkalden Dec 22 '14 at 10:25
  • Actually, there is no need. I just wanted to reduce the number of applications I have to use. I will check pythonxy. – jun Dec 27 '14 at 18:20
  • Does this answer your question? [Invoking python under CygWin on Windows hangs](https://stackoverflow.com/questions/13588454/invoking-python-under-cygwin-on-windows-hangs) – nngeek Mar 28 '20 at 04:00

1 Answers1

3

Try

cygstart /cygdrive/c/Python27/python.exe

According to this question: Using Windows Python from Cygwin

cygwin is just going to hang because windows doesn't think that the cygwin command 'Python' means interactive console, and will not flush the buffer as if it were an interactive console.

Community
  • 1
  • 1
Eliza
  • 56
  • 3
  • It worked, but executing "cygstart /cygdrive/c/Python27/python.exe" and "python" makes interactive console start on another console but not Cygwin. – jun Dec 27 '14 at 18:16