title: Python 3.9 virtual environments with windows 10
body: <p>I faced this silly problem since the last 2 days, and it turns me mad.</p>
  <p>Since I installed python 3.9 on my new Windows 10 machine, when I run the command <code>python3 -m venv .\venv</code>, I get the error &quot;<strong>Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings &gt; Manage App Execution Aliases.</strong>&quot;</p>
  <p>If I switch off the app execution aliases, as mentioned in the message, I got a message:
  <strong>'python3' is not recognized as an internal or external command,
  operable program or batch file.</strong></p>
  <p>So, I looked at similar issues on Stackoverflow and fixed the path in the environment variables (in the user variables and in the system variables).</p>
  <p>I added to the variable 'paths' the 2 following entries:</p>
  <blockquote>
  <p>C:\Users{myuser}\AppData\Local\Programs\Python\Python39<br />
  C:\Users{myuser}\AppData\Local\Programs\Python\Python39\Scripts\</p>
  </blockquote>
  <p>In all cases seen on Stack, that should have been enough. Not in my case.
  I rebooted my machine twice, to make sure the new variables were picked up, but it's still the same.</p>
  <p>I must add that I am using daily my Jupyter Lab environment, and everything works fine.
  It's just this venv that refuses to work.</p>
  <p>Does anyone has a hint on other places I should look for ?</p>