title: When I try to activate a virtual environment with venv I get an error
body: <p>I am following <a href="https://www.atlantic.net/cloud-hosting/how-to-manage-python-virtual-environments/" rel="nofollow noreferrer">this tutorial</a> on how to set up a virtual environment in Python3.6 using the windows command prompt. I had no problem generating the necessary file by running this:</p>
  
  <pre><code>python3 -m venv venv-test
  </code></pre>
  
  <p>The tutorial then advises to activate the virtual environment by running this code:</p>
  
  <pre><code>venv-test/Scripts/activate
  </code></pre>
  
  <p>But when I do this , I get the error...</p>
  
  <pre><code> File "venv-test/Scripts/activate", line 4
      deactivate () {
                ^ SyntaxError: invalid syntax
  </code></pre>
  
  <p>I opened the generated 'activate' file and this seems to be the part that's causing the problem but I'm not sure how to correct it.</p>
  
  <pre><code>deactivate () {
  # reset old environment variables
  if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
      PATH="${_OLD_VIRTUAL_PATH:-}"
      export PATH
      unset _OLD_VIRTUAL_PATH
  fi
  if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
      PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
      export PYTHONHOME
      unset _OLD_VIRTUAL_PYTHONHOME
  fi
  </code></pre>
  
  <p>Thanks in advance!</p>