title: How to run python script #!python3 command with specific sub version of python 3
body: <p>I have two versions of Python 3.6.1 and 3.6.2</p>
  
  <p>I have a sample script below:</p>
  
  <pre><code>#! python3
  import arcpy
  print ("Gurminder")
  </code></pre>
  
  <p>The code runs by default with 3.6.1 as I have specified it to run with python3</p>
  
  <p>However is there any way that I can force the compiler to run the with python 3.6.2?</p>
  
  <p>Is there any parameter where I can specify the subversion of the python interpreter to be used?</p>
  
  <p>I am aware of running the python with its interpreter executables for example:</p>
  
  <pre><code>"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" D:\inetpud_backup_17_04_2018\Gurminder\Cases\02104091\test.py'
  </code></pre>
  
  <p>The command works fine in command prompt however when it is run using os or subprocess module I get the error for the white space between the <strong>Program Files</strong></p>
  
  <p>Hence on researching the issue, I found the workaround on specifying the version in the header. Is there any way to define the subversion as well?  </p>