Decoding UTF-8 strings in Python

You need to properly decode the source text. Most likely the source text is in UTF-8 format, not ASCII. Because you do not provide any context or code for your question it is not possible to give a direct answer. I suggest you study how unicode and character encoding is done in Python: http://docs.python.org/2/howto/unicode.html

Checking whether pip is installed?

I am using Python 2.7.12 and I want to check whether the pip is installed or not. For this, in command line of Python application I wrote pip list and pressed enter. However, I get an error like: So, how can I solve this issue and get the list of modules as an output? Thanks

Python Error : File “

You are trying to run your script from within a python interpreter. You don’t want to do that. Instead, just run that command in a terminal, not in the interpreter If you are still in the interpreter, you can press ctrl+d to leave it and return to the ‘normal’ terminal