title: How to activate python virtual environment by shell script
body: <p>I wrote a shell script as.</p>
  
  <pre><code>    source ve/bin/activate
  </code></pre>
  
  <p>Saved it as activate_shell.sh latter when I ran the script with command.</p>
  
  <pre><code>    bash activate_shell.sh
  </code></pre>
  
  <p>The script is being run with no error but the virtual environment is not being activated. </p>