Python is a useful scripting language that can be used with Fortran modules to improve flexibility with manipulating certain types of data. A fully-featured development environment can be installed to write and run new Python scripts. Python and perl both import modules, so to make thing work, you may want to go into cygwin setup and dowload the version of python you want. You code will port, you will also need to get imports into the cygwin subs-system. On windows, under cygwin follow the below steps. 1.Ensure python is installed in cygwin. Type python on the terminal of cygwin and it should launch the python shell. If it doesn't launch the setup file for cygwin and select python from the package list and install. Now, install pip if it's not already installed. Installing Python inside Cygwin. Now would also be a good time to install other common packages such as vim, git, etc.—but you can always go back and install them at a later time. Note that we are using Cygwin Python rather than the standard Windows Python. Step 2 - type 'python' inside cygwin, and see that there are no errors. While installing cygwin, make sure you install the python/python-setuptools from the list. This will install 'easy_install' package. Once you have easy_install, you can use it to install pip.

  1. Cygwin Install Perl Modules
  2. Running Python In Cygwin
  3. Cygwin Install Python Package
  4. Install Python For Cygwin

To install it, rerun the cygwin setup[.].exe installer, and at the package selection step, tick 'Python/python-setuptools'. The easy_install script has the version number attached. Instead of running easy_install, run easy_install-2.7 or easy_install-3.4 (or whatever x.y version of Python you have installed).

Active6 years, 3 months ago

I would like to install Python 2.5 on Cygwin. (EDIT: I need Python 2.5 in particular, and I am aware that Cygwin setup offers 2.7 and 3.2. I installed those using the GUI and they appear to be fine.)

Install

Python 2.5 not included with the latest installation of Cygwin 1.7, so I've been trying to install from source. However, I'm getting the following error:

I am having trouble understanding what the error is in the Makefile. Here are the relevant lines (467-474):

I would appreciate it if someone could explain the error and how to fix it.

user225457

migrated from stackoverflow.comMay 19 '13 at 11:09

This question came from our site for professional and enthusiast programmers.

1 Answer

Cygwin currently offers

Since you have not said what is wrong with these, I will assume you did not know about them. Having said that, you can install like this

or use the GUI.

Steven PennySteven Penny
Cygwin How To Install Python Modules
Active4 years, 2 months ago

I am trying to install some package in cygwin's python, but I'm getting the following error: 'easy_install: command not found'.

I have tried to run 'easy_install.py', the result is also 'easy_install.py: command not found'. I have tried to search the whole of cygwin's /usr tree for anything named with the prefix 'easy', none found.

Am I missing something? AFAIK, easy_install tool should be batteries included in python 2.5. Or is there a package that needs to be installed for that that I missed?

Cygwin Install Perl Modules


4 Answers

From cygwin prompt, do:

This will install easy_install on your cygwin.

Virtual machine network driver for microsoft device emulator windows 10. Easy as py.


Running Python In Cygwin

easy_install is part of the setuptools package. This package is provided by cygwin. To install it, rerun the cygwin setup[..].exe installer, and at the package selection step, tick 'Python/python-setuptools'.

The easy_install script has the version number attached. Instead of running easy_install, run easy_install-2.7 or easy_install-3.4 (or whatever x.y version of Python you have installed).


Easy Install is a python module (easy_install) bundled with setuptools, which can be found here: http://pypi.python.org/pypi/setuptools . You must install setuptools by yourself.

Cygwin Install Python Package

  • If you want to install it into windows python than use setuptools install script from cmd shell or use MS Windows installer
  • If you need python with setuptools to work within cygwin than:

    • use cygwin's own python (you can install one using cygwin's setup.exe)
    • use setuptools source

Install Python For Cygwin

In addition to installing setuptools (as described in other answers), you also need to make sure C:Python25Scripts is in your PATH.


Not the answer you're looking for? Browse other questions tagged pythoncygwineasy-install or ask your own question.