title: Using conda install within a python script
body: <p>According to this <a href="https://stackoverflow.com/questions/12332975/installing-python-module-within-code?answertab=active#tab-top">answer</a> you can import pip from within a Python script and use it to install a module. Is it possible to do this with <code>conda install</code>?</p>
  
  <p>The conda documentation only shows examples from the command line but I'm looking for code that can be executed from within a Python script.</p>
  
  <p>Yes, I could execute shell commands from within the script but I am trying to avoid this as it is basically assuming that conda cannot be imported and its functions called.</p>