Python 2.7 installation problem

Ronald Guida oddron at gmail.com
Mon Sep 27 03:25:25 CEST 2010


Solved -- "make install" failed to actually install a subset of files.  I
had to manually copy them instead.

Specifics:
I started from /home/oddron/installers/python/Python-2.7/ and executed the
usual commands:
$ ./configure --prefix=$HOME
$ make
$ make install

I have found that the installer failed to install the contents of
"/home/oddron/installers/python/Python-2.7/build/lib.linux-i686-2.7/",
which contains *.so files.  This explains why "import collections" would
work from
the built python in /home/oddron/installers/python/Python-2.7/, but would
fail in the installed
python in /home/oddron/bin/ .

I manually copied the contents of
"/home/oddron/installers/python/Python-2.7/build/lib.linux-i686-2.7/",
to /home/oddron/lib/python2.7/ and now everything seems to work.

Thank you


On Sun, Sep 26, 2010 at 2:19 AM, Ronald Guida <oddron at gmail.com> wrote:

> Hi,
>
> I am trying to perform a user-install of python 2.7 on Ubuntu 10.04, and my
> installation is failing.
>
> This sequence of commands reproduces the failure on my system:
>
> $ tar -zxvf Python-2.7.tgz
> $ cd Python-2.7/
> $ ./configure --prefix=$HOME
> $ make
> $ ./python Lib/test/test_collections.py
> doctest (collections) ... 54 tests with zero failures
> $ make altinstall
> $ cd
> $ which python2.7
> /home/oddron/bin/python2.7
> $ python2.7
> Python 2.7 (r27:82500, Sep 26 2010, 01:49:59)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import collections
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/home/oddron/lib/python2.7/collections.py", line 8, in <module>
>     from _collections import deque, defaultdict
> ImportError: No module named _collections
> >>> import sys
> >>> sys.path
> ['', '/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']
> >>>
>
>
> Things I have already checked:
> * My path includes ~/bin
> * None of PYTHONHOME and friends are set.
> * I have also tried "make install" instead of "make altinstall", and I get
> the same failure.
>
> Can anyone give me a hint regarding what has gone wrong?
>
> Thank you
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100926/fcc14c8f/attachment.html>


More information about the Python-list mailing list