Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74931
| Date | 2014-07-21 09:36 -0700 |
|---|---|
| Subject | Installing Python 2.6.2 on Ubuntu 12.1 |
| From | Behzad Dastur <bdastur@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12136.1405961665.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
Question: How to install Python manually and make sure that all the
necessary modules and .so files get built (eg: _sha256.so, zlib.so)
Details:
I am trying to install Python2.6.2 version manually, installation goes
through fine, but later installing setuptools fails due to _sha256 Module
not found.
These are the steps I did for manually installing python in my private
folder:
1. ./configure --help
2. ./configure --prefix=/home/brd/priv_env
3. make; make install
The installation went through successfully, however I noticed that some of
the _*.so files did not get built under lib/python2.6/lib-dynload/ folder
(eg _sha256.so) , which is likely the reason why my setuptools install
failed due to the error:
"
File "/home/cisco/priv_env/lib/python2.6/hashlib.py", line 138, in
<module>
sha224 = __get_builtin_constructor('sha224')
File "/home/cisco/priv_env/lib/python2.6/hashlib.py", line 66, in
__get_builtin_constructor
import _sha256
ImportError: No module named _sha256"
Note that I have the necessary libraries installed on this machine eg:
libzlib.so, libssl.so
/usr/lib/x86_64-linux-gnu/libssl.so
/usr/lib/x86_64-linux-gnu/libssl3.so
/usr/lib/x86_64-linux/gnu/libz.so.1
Another note, is that the standard python installation on this system
(Python 2.7.3), does not have this problem, and has all the modules and .so
files built.
Sincere Regards,
Behzad
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Installing Python 2.6.2 on Ubuntu 12.1 Behzad Dastur <bdastur@gmail.com> - 2014-07-21 09:36 -0700 Re: Installing Python 2.6.2 on Ubuntu 12.1 Miki Tebeka <miki.tebeka@gmail.com> - 2014-07-21 22:05 -0700
csiph-web