問題:
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