egoer.blogg.se

Check python version
Check python version





check python version

You can check sites such as Stack Overflow, where developers can get into long and sometimes convoluted discussions on how best to do certain things with code. It will also depend on which version of Python you are writing your programming script for. There is no one solution to this, as you can find various examples and ways to do this from within Python. Some of the reasons may be that you want to ensure compatibility with the Python interpreter, especially if the script is going to be run on different servers. You may want to check the version of Python from within a Python script you are writing. Checking the Version of Python from Within a Python Script Your best bet is to use the search function from within the control panel to look up “Python.” From there, you might be able to see which version of Python is installed and running. Surprisingly, when you search for ways to check the Python version from an administrative interface or control panel such as WHM or Cpanel, not much comes up. Checking the Python Version from a Control Panel In some respects, this is just faster and easier, and gives you a lot more information about the entire platform. Type “help”, “copyright”, “credits” or “license” for more information. You will get not only the version you are running, but a lot more info, such as: You can also just type in “python” at the command line (or “sudo python” in Ubuntu). HTTPD stands for “HTTP Daemon,” which makes a bit more sense – this is the daemon (or server) that uses the HTTP protocol to deliver web pages.Īt any rate, if you can remember the -v, and the lowercase version is not working, you now know to try an uppercase -V for checking the Python version.







Check python version