title: Virtual Environment Activation from Command Prompt Returns "The system cannot find the path specified" but Activates Venv Anyway?
body: <p>I created a virtual environment in a Windows terminal using the standard:</p>
  <pre><code>python -m venv {venv name}
  </code></pre>
  <p>Everything works as far as I can tell, but when I change into the &quot;Scripts&quot; directory and run &quot;activate&quot; (or even &quot;.\activate&quot;), I get the message &quot;The system cannot find the path specified.&quot; The resulting command prompt seems to indicate the <code>venv</code> is activated:</p>
  <p><a href="https://i.stack.imgur.com/plFD2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/plFD2.png" alt="enter image description here" /></a></p>
  <p>Using <code>pip list</code> indicates that I'm indeed in the virtual environment, so it seems the message is erroneous or referring to some other process going on behind the scenes.</p>
  <p>The main reason I ask this question is because I've been trying to use the <code>venv</code> in VSCode but am unable to execute Python code in the Python Interactive window (<code>&quot;Stderr from shellexec, the system cannot find the path specified...&quot;</code> is a message I get followed by a reference to two Python files VSCode cannot seem to locate -- although they are indeed in the folder the message indicates).</p>
  <p>I'm thinking this might have something to do with it, and have searched for days online and on SO for an answer to no avail.</p>