pip install returning invalid syntax

后端 未结 14 1486
执笔经年
执笔经年 2020-12-15 23:24

I\'ve just installed python 3.6 which comes with pip

However, in Windows command prompt, when I do: \'pip install bs4\' it returns \'SyntaxError: invalid syntax\' un

14条回答
  •  孤街浪徒
    2020-12-16 00:12

    Chances are you are in the Python interpreter. Happens sometimes if you give this (Python) command in cmd.exe just to check the version of Python and you so happen to forget to come out.

    Try this command

    exit()
    pip install xyz
    

提交回复
热议问题