Search code examples
pythonlinuxwindowserror-handlinguwsgi

Python errors on Windows


So this code was written on Linux and now I try to run it on Windows and I am getting such errors, what should I do?


Solution

  • It's only available on Unix. https://docs.python.org/3/library/os.html#os.uname

    Not sure if sys.platform fits your needs.