title: How to automatically install required packages from a python script as necessary?
body: <p>Is there anything in python or linux what basically instructs the system to "install whatever is necessary". Basically I find it annoying to install python packages for each new script/system/server that I work on. Each time I end up doing a sudo pip or an apt-get or dnf anyway. Why not automate that within the script itself. Whereever a 'no package found' error crops up, pass the library name to the install statement. Is this there ?</p>
  
  <p>PS: I know docker exists, but am talking at a python/script level or a direct system level for purely execution purposes.</p>
  
  <p>Thanks</p>