Why does "pip install" inside Python raise a SyntaxError?

問題:

I'm trying to use pip to install a package.我正在嘗試使用 pip 安裝軟件包。 I try to run pip install from the Python shell, but I get a SyntaxError .我嘗試從 Python shell 運行pip install ,但我收到了SyntaxError Why do I get this error?爲什麼我會收到這個錯誤? How do I use pip to install the package?如何使用 pip 安裝軟件包?

>>> pip install selenium
              ^
SyntaxError: invalid syntax

解決方案:

參考一: https://en.stackoom.com/question/ZrjS
參考二: https://stackoom.com/question/ZrjS
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章