jamesmeneghello / pynab

Newznab-compliant Usenet Indexer written in Python, using PostgreSQL/MySQL-like.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ubuntu 12.04 and Python 3.3

thimslugga opened this issue · comments

The server I have at home is already running Ubuntu 12.04 and the latest Python3 version in apt-get is 3.2. I did not test pynab with Python 3.2 and just mentioning this as it may work. Here is an optional way to install Python3.3 on Ubuntu 12.04. This expects that you are able to escalate to root priviledges at some point in the install. I included install of pip and virtualenv for easy install of modules etc.

ubuntu 12.04 python 3.3.2 install for pynab

sudo apt-get install curl build-essential libbz2-dev

cd /usr/local/src
wget http://www.python.org/ftp/python/3.3.2/Python-3.3.2.tgz
tar -xzvf Python-3.3.2.tgz

cd Python-3.3.2
./configure --prefix=/opt/python3.3
make
sudo make install

/opt/python3.3/bin/python3 or python3.3
exit()

curl http://python-distribute.org/distribute_setup.py | /opt/python3.3/bin/python3.3

curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | /opt/python3.3/bin/python3.3

/opt/python3.3/bin/pip install virtualenv
/opt/python3.3/bin/pip install virtualenvwrapper

Add /opt/python3.3/bin to path and make sure it's before /usr/ stuff as system if you have python3 installed via apt-get. Otherwise add it farther down your path and remember to access it via python3.3 script.

export PATH=:/opt/python3.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH

Cheers, I'll add a link to this issue in the README for people running 12.04.