question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'uvicorn' is not recognized as an internal or external command, operable program or batch file.

See original GitHub issue

First check

  • I used the GitHub search to find a similar issue and didn’t find it.
  • I searched the FastAPI documentation, with the integrated search.
  • I already searched in Google “How to X in FastAPI” and didn’t find any information.

Description

I have installed uvicorn from py -m pip install uvicorn, when I run uvicorn I get this error.

'uvicorn' is not recognized as an internal or external command, operable program or batch file.

How can I make it to work, what am I doing wrong?

Could you please help

Additional context

python version 3.7.3

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

10reactions
jlugaocommented, Dec 9, 2019

I’d recommend trying this in a virtualenv (or any other dependency manager like poetry or pipenv)

This is how I ask people to setup their projects on my tutorials:

python -m venv .venv
source .venv/bin/activate
pip install uvicorn
uvicorn main:app --reload
3reactions
aviramhacommented, Dec 4, 2019

This is a path issue probably. Make sure uvicorn exists in {PYTHON_INSTALLATION_DIR}\Scripts. If it exists, add to your PATH environment variable that directory (https://docs.alfresco.com/4.2/tasks/fot-addpath.html)

Read more comments on GitHub >

github_iconTop Results From Across the Web

The term 'uvicorn' is not recognized as the name of a cmdlet ...
'uvicorn' is not ; as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or...
Read more >
Uvicorn
The uvicorn command line tool is the easiest way to run your application. ... for applications to raise an exception on scope types...
Read more >
'uvicorn' is not recognized as an internal or external command ...
'uvicorn' is not recognized as an internal or external command, operable program or batch file.
Read more >
Fixing Error for Uvicorn Python FastAPI - YouTube
if you are getting this error, skip to the end of this video and your issue will be solved. Happy Coding !WARNING: The...
Read more >
The Term 'Uvicorn' Is Not Recognized As The Name ... - ADocLib
The error is caused when Python's executable file is not found in an environment variable as a result of the Python command in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found