pip install returning invalid syntax

后端 未结 14 1467
执笔经年
执笔经年 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条回答
  •  猫巷女王i
    2020-12-16 00:01

    You can also go into the directory where you have your pip.exe or pip3.exe located. For me it was on my D drive so here is what I did:

    D:\>cd python
    
    D:\python>cd Scripts
    
    D:\python\Scripts>pip3.exe install tweepy
    

    Hope it helps

提交回复
热议问题