syntax-error

Checking whether the pip is installed?

独自空忆成欢 提交于 2020-11-26 07:17:30
问题 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

Checking whether the pip is installed?

与世无争的帅哥 提交于 2020-11-26 07:17:28
问题 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