Reputation: 724
As the title, I have installed uvicorn using the powershell, and added the environment variable. But whenever I run the command, I get the same error. I know I must be doing something small and stupid, but following every answer on SO tells me the same thing, and I have no leads at all.
Upvotes: 3
Views: 18438
Reputation: 1
Me I've just copied folders:
to my default python folder: C:\Program Files\Python38\Scripts, and I added the link to the .exe file to the environment variables path. It worked!
Upvotes: 0
Reputation: 36
I know this is an old question but to anyone still looking for a solution if you're on windows at least.
users/AppData/roaming/Python/Python37/site-packages
."uvicorn"
and "uvicorn-X.XX.Xdist-info"
folders, then go
to users/AppData/roaming/Python/Python37/Scripts
and copy the
"uvicorn.exe"."C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Scripts"
."uvicorn main:app --reload"
.And it should work now.
Upvotes: 2
Reputation: 1
Usually console won't take the changes when applied to environmental variables when it is open. So can you try once closing the powershell or CMD and reopen.
Upvotes: -1