About 201,000 results
Open links in new tab
  1. How to identify which OS Python is running on - Stack Overflow

    The above Python program will show you the output of the most commonly used built-in functions, already provided by os, sys, platform, site. So the best way to get only the essential code is looking …

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

    As far as I know, Python has 3 ways of finding out what operating system is running on: os.name sys.platform platform.system() Knowing this information is often useful in conditional imports, or us...

  3. How to get the system info with Python? - Stack Overflow

    Jun 23, 2010 · I need to get the info under what environment the software is running. Does python have a library for this purpose? I want to know the following info. OS name/version Name of the CPU, …

  4. python - ImportError: No module named 'encodings' - Stack Overflow

    Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings' I searched to figure out my problem. Solution was simple. When you install python3.5, …

  5. No module named 'tensorflow.python.platform' - Stack Overflow

    Jun 20, 2019 · No module named 'tensorflow.python.platform' Asked 6 years, 5 months ago Modified 3 years, 10 months ago Viewed 12k times

  6. python - How to fix "module 'platform' has no attribute 'linux ...

    Nov 8, 2019 · I ran into this problem after installing OpenCobolIDE on Linux Mint 20, having upgraded Python to the latest level. have submitted a code fix to the OpenCobolIDE author to review and test. I …

  7. path - How can I troubleshoot Python "Could not find platform ...

    How can I troubleshoot Python "Could not find platform independent libraries <prefix>" Asked 12 years, 2 months ago Modified 1 year, 9 months ago Viewed 310k times

  8. python - When should I use os.name vs. sys.platform vs.

    Sep 26, 2013 · The documentation says: See also sys.platform has a finer granularity. os.uname() gives system-dependent version information. The platform module provides detailed checks for the …

  9. python - How to offer platform-specific implementations of a module ...

    I need to make one function in a module platform-independent by offering several implementations, without changing any files that import it. The following works: do_it = getattr(__import__(__name_...

  10. ImportError: No module named 'tensorflow.python'

    1 I had the same issue running a python file named tensorflow.py, after renaming it the issue dissapeared and the file started running properly.