I'm a newbie to Ubuntu, so I'm sorry if question is too dumb. How can I install Python package to already installed local version of Python?
Ubuntu 14.04, Python 2.7.10 /usr/local/bin/python2.7, package I need to install is zlib
Thanks in advance
SOLVED
- $ sudo apt-get install zlib1g-dev
- $ wget python.org/ftp/python/2.7.10/Python-2.7.10.tgz
- $ tar xfz Python-2.7.10.tgz
- $ cd Python-2.7.10/
- $ ./configure --prefix /path/to/python/ --enable-ipv6
(in my case path was /usr/local ) - $ make
- $ sudo make install
Check:
$ python2.7 -c "import zlib; print(zlib.version)"
Grand thanks to all of you guys for helping with this problem!