Solved -- "make install" failed to actually install a subset of files.  I had to manually copy them instead.<br><br>Specifics:<br>I started from /home/oddron/installers/python/Python-2.7/ and executed the usual commands:<br>
$ ./configure --prefix=$HOME<br>
$ make<br>$ make install<br><br>I have found that the installer failed to install the contents of<br>"/home/oddron/installers/python/Python-2.7/build/lib.linux-i686-2.7/",<br>which contains *.so files.  This explains why "import collections" would work from<br>
the built python in /home/oddron/installers/python/Python-2.7/, but would fail in the installed<br>python in /home/oddron/bin/ .<br><br>I manually copied the contents of<br>"/home/oddron/installers/python/Python-2.7/build/lib.linux-i686-2.7/",<br>

to /home/oddron/lib/python2.7/ and now everything seems to work.<br><br>Thank you<br><br><br><div class="gmail_quote">On Sun, Sep 26, 2010 at 2:19 AM, Ronald Guida <span dir="ltr"><<a href="mailto:oddron@gmail.com">oddron@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br><br>I am trying to perform a user-install of python 2.7 on Ubuntu 10.04, and my installation is failing.<br>
<br>This sequence of commands reproduces the failure on my system:<br><br>$ tar -zxvf Python-2.7.tgz<br>$ cd Python-2.7/<br>
$ ./configure --prefix=$HOME<br>
$ make<br>$ ./python Lib/test/test_collections.py<br>doctest (collections) ... 54 tests with zero failures<br>
$ make altinstall<br>$ cd<br>$ which python2.7<br>/home/oddron/bin/python2.7<br>$ python2.7<br>Python 2.7 (r27:82500, Sep 26 2010, 01:49:59) <br>[GCC 4.4.3] on linux2<br>Type "help", "copyright", "credits" or "license" for more information.<br>

>>> import collections<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>  File "/home/oddron/lib/python2.7/collections.py", line 8, in <module><br>

    from _collections import deque, defaultdict<br>ImportError: No module named _collections<br>>>> import sys<br>>>> sys.path<br>['', '/home/oddron/lib/python27.zip', '/home/oddron/lib/python2.7', '/home/oddron/lib/python2.7/plat-linux2', '/home/oddron/lib/python2.7/lib-tk', '/home/oddron/lib/python2.7/lib-old', '/home/oddron/lib/python2.7/lib-dynload', '/home/oddron/.local/lib/python2.7/site-packages', '/home/oddron/lib/python2.7/site-packages']<br>

>>> <br><br><br>Things I have already checked:<br>* My path includes ~/bin<br>* None of PYTHONHOME and friends are set.<br>* I have also tried "make install" instead of "make altinstall", and I get the same failure.<br>

<br>Can anyone give me a hint regarding what has gone wrong?<br><br>Thank you<br><br>
</blockquote></div><br>