I recently went to upgrade python on my ubuntu 14.04 from 2.7 to 2.7.11. Afterwards, I noticed that I kept getting errors on importing modules like Requests. I made sure to pip install requests and upgrade but to no avail. I went ahead and uninstalled python and reinstalled with a few other random things.
Later I found out that all my packages were in dist-packages and not in site-packages so I sought out to find a way to get python to call on that.
I ran this command found from this site:
export PYTHONPATH="/usr/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages:/usr/local/lib/python2.7/dist-packages"
When I run python -c "import sys; print sys.path"
['', '/usr/lib/python2.7/site-packages', '/usr/local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload']
I run my python script and still get that error "ImportError: No module named requests" which can be found in the dist-packages folder.
How can I fix this without nuking my box?
All help is greatly appreciated!