title: Python uvicorn : The term 'uvicorn' is not recognized as the name of a cmdlet, function, script file
body: <p>Good evening,</p>
  <p>I am using python 3.9 and try to run a new FastAPI service on Windows 10 Pro based on the documentation on internet <a href="https://www.uvicorn.org/" rel="noreferrer">https://www.uvicorn.org/</a> i executed the following statements</p>
  <pre><code>pip install uvicorn pip install uvicorn[standard]
  </code></pre>
  <p>create the sample file app.py</p>
  <pre><code>from fastapi import FastAPI
  
  app = FastAPI()
  
  
  @app.get(&quot;/&quot;)
  async def root():
      return {&quot;message&quot;: &quot;Hello World&quot;}
  </code></pre>
  <p>But when i run the code below :</p>
  <pre><code>uvicorn main:app --reload
  
  
  uvicorn : The term 'uvicorn' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify t
  hat the path is correct and try again.
  At line:1 char:1
  + uvicorn
  + ~~~~~~~
      + CategoryInfo          : ObjectNotFound: (uvicorn:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  <p>I also add the path of Python in the envroment settings</p>
  <p>I also re-install Python 3.9  and make the default path for installation to c:\ProgramFiles\Python39 this path is also include now in the system enviroment and user enviroment settings.</p>
  <p><a href="https://i.stack.imgur.com/0LgMN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0LgMN.png" alt="enter image description here" /></a></p>
  <p>if i run pip install uvicorn again it shows the following statement:</p>
  <pre><code>λ pip install uvicorn
  Defaulting to user installation because normal site-packages is not writeable
  Requirement already satisfied: uvicorn in c:\users\username\appdata\roaming\python\python39\site-packages (0.12.2)
  Requirement already satisfied: h11&gt;=0.8 in c:\users\username\appdata\roaming\python\python39\site-packages (from uvicorn) (0.11.0)
  Requirement already satisfied: click==7.* in c:\users\username\appdata\roaming\python\python39\site-packages (from uvicorn) (7.1.2)
  WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.
  You should consider upgrading via the 'c:\program files\python39\python.exe -m pip install --upgrade pip' command.
  </code></pre>
  <p>Many thanks</p>
  <p>Erik</p>