I have a python package previously installed via apt(by default). Now I want to install new version and compile it manually from the sources with all the required modules.
How can I do that? I suppose that
apt-get purge python
And then install from sources is not possible because python have lots of dependencies and will uninstall all of them in this case.
What is the right way to do that?