I had python 3.4 in my virtualenv, but after upgrading ubuntu to 16.04 python upgraded to 3.5 so python in virtualenv crashes with these errors:
Could not find p
I fixed it by creating a new virtualenv and copying the python executable into the old broken virtualenv.