Checking whether the 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: File"stdin",line 1 pip list Syntax Error: invalid syntax So, how can I solve this issue and get the list of modules as an output? Thanks 回答1: Use command line and not python. TLDR; On Windows, do: python -m pip --version Details: On Windows, ~> (open windows terminal) Start (or Windows Key) > type