Can anyone give some advice how to upgrade 2.7.X version of python to the 2.7.14 version? I've tried to upgrade my current version(2.7.9) from the source code with the following steps:
- wget -c https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz
- tar -xvf Python-2.7.14.tgz
- cd Python-2.7.14
- sudo ./configure
- sudo make
- sudo make install
Configuring and compiling the source code took some time, and ultimately finished without errors (at least i didn't notice any). I've rebooted my device and after rebooting I tried to install different python modules using PIP. When all modules were successfully installed I tried to import them and for each got the same message: "ImportError: No module named 'module_name'". After that I've uninstalled all modules and tried to install them with following command: "sudo apt-get install python-'module_name'", but the result after importing was the same like in previous step. I don't know what to do next so any suggestion or advice would be helpful and time-saving.