Best way to have full Python install under cygwin/XP?

7,823

Solution 1

Copying your Python install into Cygwin won't work.

Python Extensions for Windows seems to be what you are after.

Otherwise, I would look at ActivePython (www.activestate.com/activepython/)* if you want to stay on Windows.

*Sorry, it will only let me put 1 link...

Solution 2

I know this question is old, but...

http://blog.adlibre.org/technology/how-to-install-and-setup-a-python-django-development-environment-on-windows-7.html

Geared to Django installs under Cygwin, but it should be a suitable bootstrap. Worked out pretty well for me...

Share:
7,823

Related videos on Youtube

user12906
Author by

user12906

Updated on September 17, 2022

Comments

  • user12906
    user12906 over 1 year

    Pythons installed under WinXP have dirs like DLLs, DOC, include, etc. but python (2.5) installed with cygwin is a bare python.exe. My motivation for asking is that 'things' under XP don't seem to be finding 'other things' under cygwin and vice versa, I want to start developing with Qt, I like shells, and I do not like MS; I thought if I got all the components under one roof, I could finally start to have scripts find executables which could find files and such. 1. Can I simply copy the contents of an XP installation into the cygwin tree? 2. Is the XP flavor of Python different from the cygwin flavor? (Same CPU, he pointed out, naively.) 3. Someone must work with a full-fledged (if snakes had feathers...) Python from within cygwin; how is it done?

    Disclaimer 1: I have never compiled anything under XP or cygwin; had hoped not to have to go there, hence, python in the first place. Disclaimer 2: Asked this over at StackOverflow but got a strong hint to ask it here, so here I am.

    Responding to this comment: Can you be more specific about "things" finding "other things"? Error messages, for example. Also, what method did you use to install Python under Cygwin? And have you considered installing Linux in a virtual machine with XP as the host? – Dennis Williamson

    Error msgs: I expect that it all can be traced to the settings of environment variables like $PATH. When I write a Python script that opens files named on the command line, I have gotten errors saying "file not found"; this goes away if I copy the script into the working dir. I may be on the way to curing this by using os.path.abspath() to introduce the full, ugly filename into the script. Another form of "not finding" I have seen is cygwin not locating the Python installation I wish to use, whether one of the Pythons installed on C: (my system partition) or in cygwin's /usr/bin, which is also /cygdrive/d/cygwin/usr/bin (where D:, aka /cygdrive/d is my user partition). I can't cite the error exactly: didn't write the errmsg down, foolishly.

    Method of installing Python under cygwin: Updated the cygwin distribution by using their install; selected their version of Python (happens to be a 2.5) when the opportunity arose.

    WinXP --> VM, e.g. Virtual Box from Sun --> a Linux --> full Python installation (all the subdirs, etc.): These are new to me and am just reading up on them. Big question I have is whether the host and virtual OSes share access to certain (all?) filesystems. Having a Linux sandbox bounded by impenetrable walls does not sound terribly useful.

    • Dennis Williamson
      Dennis Williamson almost 15 years
      Can you be more specific about "things" finding "other things"? Error messages, for example. Also, what method did you use to install Python under Cygwin? And have you considered installing Linux in a virtual machine with XP as the host?
    • Dennis Williamson
      Dennis Williamson almost 15 years
      No impenetrable walls - you can do Samba shares, scp, ssh, X, etc., it would be just like having two computers on a network. You can also do copy/paste from one to the other since the VM runs in a window on the host (you have to install VB Guest Additions on the guest and enable the feature but that's trivial).
    • user12906
      user12906 almost 15 years
      Can a virtual OS host a VM of its own? Recursive, collapsible networks?
    • user12906
      user12906 almost 15 years
      Are there really bombproof walk-throughs for all the setting-up? My last stint as ad hoc sysadmin was 15+ years ago, and I'm getting too old to figure this stuff out from scratch.
    • user12906
      user12906 almost 15 years
      @Dennis Williamson --- Would you put this material you've posted down below as an answer, please? I'd like to give it a boost and hand you some points, if that would be useful to you.
  • user12906
    user12906 almost 15 years
    Actually, I want to work with Python under cygwin. WinXP is just a fact of life in the background that holds the Python distribution, along with a lot of other things. Linux, as far as I've been able to judge it, is out, for me.
  • user12906
    user12906 almost 15 years
    I don't understand. I do most of my work inside cygwin. I'm trying to find the best way to operate a full-blown Python distribution from there. I don't even know why I would want .Net libraries. I'm trying to write books, sling text around, and solve puzzles for mental exercise, and I like my cygwin environment --- considering the alternative.