![]() Wondering what version of PowerShell you’re running on your PC? It’s equally to find that information. packages in the linux package managers are often a few versions behind, so to get the. To check Python 2.7’s version, use this command: python -versionįor Python 3, use the following command: python3 -version is with Anaconda, a cross-platform (Linux, macOS, Windows) Python. ![]() In this case, to find the version of each instance of Python, you’ll use the following commands. The version installed on your system may be different. This is because some apps use the newer Python 3 while others still rely on Python 2.7 in order to run. To find out which version of Python is installed on your system run the python -version or python -V command: python -version The command will print the default Python version, in this case, that is 2.7.15. You could have multiple Python versions installed at the same time on your computer. RELATED: How to Launch a Terminal Window on Ubuntu Linux What If Your Computer Has Multiple Python Versions Installed? The terminal will output your current Python version. Use the command sudo apt install python2 to install python2. To check the installed Python version on Linux, open a Terminal window (you can often use the shortcut Ctrl+Alt+T), type the following command, and press Enter: python -version To quickly check whether python2 is installed, run the command python2 -version, and your computer will most likely show command not found, because it is most likely not installed in your system. ![]() RELATED: 16 Terminal Commands That Every Mac User Should Know Checking the Python Version on Linux Check Python Version Check Python Version in Linux Check Python Version in Windows Check Python Version in MacOS Use sys module to check Python version Use. Your current Python version will be displayed. On the Terminal window, type the following command and press Enter: python -version
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |