How to fix the error- Python was not found ; run without arguments to install from the Microsoft Store , or disable this shortcut from Settings?

When you try to execute any python or py command from the Command Prompt, the following error is seen- Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings   To solve this error, firstly, ensure that you have successfully installed Python on your system. One way of verifying is by checking the version number of Python. If Python is not installed on your system, go ahead and install Python. If you are still seeing the error, don’t worry. In this article, we have compiled the solutions to overcome this error. … Read more

[FIX] Attribute Error : ‘str’ object has no attribute ‘decode’ in Python 3

The error, ‘str’ object has no attribute ‘decode’ occurs in Python 3 when you try to decode Unicode characters in a string. If you have upgraded from Python 2 to Python 3, you will notice that it worked in Python 2. But that’s not working in Python 3. Firstly, let’s see what is causing this error. What causes the Attribute Error: ‘str’ object has no attribute ‘decode’? Encoding means converting a string object to bytes. And decoding means converting bytes to a string.   The default encoding standard in Python 2 is ASCII. Meaning, if your program is expecting ASCII characters, … Read more

[SOLVED]- ‘python’ is not recognized as an internal or external command

Many users have reported seeing – ‘python’ is not recognized as an internal or external command, operable program, or batch file error. This error is seen when you open your command prompt to verify the successful installation of Python on your system. What causes the error – ‘python’ is not recognized as an internal or external command, operable program, or batch file? To access any files on your system, you should know the path to that file. The path is nothing but the location where the file is stored within the system. When we execute the command python in the command prompt, we are calling … Read more

How to Fix pip install returning an invalid syntax Error

Python has some standard packages pre-installed in it. The Python community develops a lot of external packages to support users. These packages are published in the PyPI repo. If you want to use these packages, you have to first install them on your system using the package management tools. Pip is a standard tool used in Python to manage external packages. To install an external package, the pip command to be used is pip install <package-name> However, in some cases, when the pip install <package-name> command is executed, the below error is seen. SyntaxError: invalid syntax   In this guide, let us discuss … Read more

Different ways to Check the Python Version

Python is a programming language that is evolving every day. Many times, you will have to print the version number of the Python that is installed on your system. If you want to determine the version of python installed on your system or you want to print the version of the current python installation in your script, read along. Are you new to Python? If you are wondering how to install Python on your Windows system, check out this guide. Understanding Versioning in Python Python versions are in the form of major_version.minor_version.micro_version Bug fixes and simple cosmetic fixes are added … Read more

How to Install Python on Windows 10/11

Python is a widely-used programming language. It is gaining popularity these days as it is easy to learn. Python supports a lot of libraries, so developers can develop the required functionality with ease without having to reinvent the wheel. If you want to install Python 3 on Windows, this guide will help you. Python comes pre-installed on Linux-based operating systems like Ubuntu, MAC, and CentOS. However, we have to download and install Python manually on the Windows OS. There are two versions in Python: Python 2 and Python 3. Both can be installed on any machine free of charge. In … Read more