title: Which Python version is installed in another conda env
body: <p>How can I find out which Python version is installed in a <code>conda</code> environment where I know the name, but do not want to activate that environment?</p>
  
  <p>Background: I have chosen the lazy way to get <code>python3.6</code> on my <code>Ubuntu 14.04</code> machine and installed <code>conda</code>. But I would like to add certain directories to my <code>PYTHONPATH</code> depending on whether the environment has <code>python2.x</code> or <code>python3.x</code> and I plan to do this by wrapping <code>conda</code>'s <code>activate</code> like so:</p>
  
  <pre><code>PYMAJOR=$(a_miracle_occurs $CONDAENV)
  BASHRC=$(cat &lt;&lt;EOF
  source ~/.bashrc
  source activate $CONDAENV
  export PATH=...
  export PYTHONPATH=".../modules$PYMAJOR"
  "
  EOF
  )
  bash --rcfile &lt;(echo "${BASHRC}")
  </code></pre>
  
  <p>I have no compatibility issues with subversions of <code>python</code> and I do not want to <code>setup.py develop</code> the modules in the <code>PYTHONPATH</code>-to-be because there are still too many changes, also on structural level.</p>
  
  <p>Remark: I am aware of <code>conda list -n ENVNAME</code> but this would involve parsing human readable output and I would feel better off to have something retrieving the info in machine readable form.</p>