so after much annoyance and heartbrake i managed to upgrade my Python3.2 to Python3.4 on Ubuntu 12.04 LTS. I followed this rather simple method:
seemed to do the trick, running 'python' as a command brings me into a Python3.4 shell instead of the older version. great.
only now im having some issues. The reason i wanted to change to 3.4 was to get a newer version of the Python mysql.connector, version 2.0.0 or above, which requires 3.4. But after i installed 3.4 my easy_install, pip and virtualenv (and probably lots of others) have broken, and it seems to be some sort of versioning issue by the looks of it. heres some error outputs:
pip
(without typing out the whole thing, heres the last two lines)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 584, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pip==7.1.0
easy_install
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 584, in resolve
raise raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: distribute==0.06.24dev-r0
virtualenv
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 584, in resolve
raise raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: virtualenv==13.1.0
does anybody know why this happened? and can you guide me through a solution?
thanks!
python
maps topython-3.4
? If you are, you need to undo whatever you've done. The system needs the version of Python it ships with. If you wantpython
to map to another version, you use virtualenv or venv (which sets up a discrete environment with a copy of whatever version of Python you want, aspython
, without breaking the system). – Oli♦ Aug 5 '15 at 10:47