About 407,000 results
Open links in new tab
  1. Is it possible to create an operating system using Python?

    It is, however, technically possible to create an operating system centered on Python, that is; have only the very low level stuff in written in C and assembly and have most of the rest of the …

  2. operating system - How to identify which OS Python is running on ...

    Short Story. Use platform.system().It returns Windows, Linux or Darwin (for OS X).. Long Story. There are three ways to get the OS in Python, each with its own pro and cons:

  3. How can I find the current OS in Python? - Stack Overflow

    Sep 21, 2008 · I usually use sys.platform to get the platform. sys.platform will distinguish between linux, other unixes, and OS X, while os.name is "posix" for all of them.

  4. python - How do I execute a program or call a system command?

    Note on Python version: If you are still using Python 2, subprocess.call works in a similar way. ProTip: shlex.split can help you to parse the command for run, call, and other subprocess …

  5. How do I check the operating system in Python? - Stack Overflow

    May 19, 2016 · Note that since Python 3.3, "linux2" is no longer a possible value of platform (see the linked docs for corroboration) and so if you only need to support Python 3.3 and later you …

  6. python - How to install the os module? - Stack Overflow

    I'm trying to install the os Python module on Windows. In a cmd console, I typed: C:\\Users\\username> pip install os Collecting os Could not find a version that satisfies the …

  7. python - Operating System from scratch - Stack Overflow

    Very bad idea. OS in python is a nonsense. The OS should have the ability to manage all the processes, but the most important: an OS should have the ability to manage all the hardware …

  8. operating system - Detect OS with python - Stack Overflow

    Aug 4, 2020 · How do I check the operating system in Python? 2. Python 2.7, OS Detection return values. 4.

  9. When to use os.name, sys.platform, or platform.system?

    Return a 5-tuple containing information identifying the current operating system. The tuple contains 5 strings: (sysname, nodename, release, version, machine). Some systems truncate …

  10. How do I check if I'm running on Windows in Python?

    Python os module. Specifically for Python 3.6/3.7: os.name: The name of the operating system dependent module imported. The following names have currently been registered: 'posix', 'nt', …

Refresh