This error message indicates that the program is attempting to access a socket in a way that is not allowed due to the access permissions set on the system.

To resolve this issue, you can try the following solutions:

  1. Run the command prompt as an administrator and then run the uvicorn command again.

  2. If you are using a firewall or antivirus software, try disabling it temporarily and then run the command again.

  3. Change the port number that uvicorn is using by specifying the --port flag followed by a different port number. For example, uvicorn main:app --reload --port 8000.

  4. Make sure that no other program is using the same port that uvicorn is trying to use. You can check this by running the command netstat -ano in the command prompt and looking for any processes that are using the port specified by uvicorn. If you find any, you can either terminate those processes or change the port number for uvicorn.

If none of the above solutions work, it may be helpful to provide more information about your specific setup and code so that a more tailored solution can be provided

PS CUsersadh23Desktoptest uvicorn mainapp --reloadINFO Will watch for changes in these directories CUsersadh23DesktoptestERROR WinError 10013 以一种访问权限不允许的方式做了一个访问套接字的尝试。

原文地址: https://www.cveoy.top/t/topic/iYv9 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录