I am a bit confused about the cases in which the above commands must be used when downloading python packages. I was trying to download a package named pyudev in accordance with an answer with this question. I executed this command :
but received the following message :
However the following worked fine :
When is apt-get supposed to be used to install packages and when is python-pip used?