Trunk under Python 3.4 on Ubuntu

This is only for trunk users of Pyomo on Ubuntu (and maybe Debian). If you don't know why you want trunk, then you probably don't want it and you can totally ignore this post.

Here is what I did to install pyomo trunk using python3.4 on Ubuntu 14.04; March 2015


0. If you want python2.7 don't use these steps.

1. There is no reason to think these would be anything like the steps on a mac

2. I am tired of working on this, so I have not done the experiments to find out which steps could be omitted or simplified

3. Obviously, if you have already installed numpy, etc. into 3.4 or you don't want numpy etc. you can skip those steps

4. There might be typos (I did not paste these in)

sudo rm -r /usr/bin/python

sudo ln -s /usr/bin/python3.4 /usr/bin/python

sudo apt-get install python3-numpy

sudo apt-get install python3-scipy

sudo apt-get install python3-matplotlib

sudo apt-get install python3-pip

==== (you can get xlrd later if you need it)

=== Edit pyomo_install to comment out two lines and add one line:

    ### install_pip(upgrade=options.zipfile is None, user=False, quiet=not options.verbose)

    ### pip = find_pip(pyomo_install_tempdir)

    pip = "pip"

python pyomo_install –trunk --venv=pyomo

sudo rm -r /usr/bin/python

sudo ln -s /usr/bin/python2.7 /usr/bin/python

=== make sure your .bashrc file puts pyomo/bin very early in the path

=== open a new terminal