Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
260 views
in Technique[技术] by (71.8m points)

python - Upgrade Selenium from version 20.2.1 to 20.3.3 in PowerShell

I'm using Selenium to do a WhatsApp bot. However, the Selenium when I use pip install seleniumsays that is recommendable that I upgrade the selenium version. If is recommendable and not obrigatory, I didn't do, but the script didn't run because of this.

Here is what appears when i use pip install selenium:

Requirement already satisfied: selenium in c:usersgabriappdatalocalpackagespythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0localcachelocal-packagespython38site-packages (3.141.0)
Requirement already satisfied: urllib3 in c:usersgabriappdatalocalpackagespythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0localcachelocal-packagespython38site-packages (from selenium) (1.26.2)
WARNING: You are using pip version 20.2.1; however, version 20.3.3 is available.
You should consider upgrading via the 'C:UsersgabriAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0python.exe -m pip install --upgrade pip' command.

So what I can do to fix this? I didn't get the instuctions that the powershell gave to me.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
'C:UsersgabriAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0python.exe -m pip install --upgrade pip

even solution is there in the error itself . The warning means there is new version of pip (the package manager and not the package you are trying to install) . Just run above command to update pip .


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...