pip install returning invalid syntax

后端 未结 14 1453
执笔经年
执笔经年 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:08

    You need to be in the specific folder where pip.exe exists, then do the following steps:

    1. open cmd.exe
    2. write the following command:
        cd "The path to the python folder"
    

    or in my case, i wrote

        cd C:\Users\username\AppData\Local\Programs\Python\Python37-32\Scripts
    
    1. then write the following command
        pip install *anypackage*
    

提交回复
热议问题