You should consider upgrading via the ‘python -m pip install --upgrade pip‘ command解决方法

You should consider upgrading via the ‘python -m pip install --upgrade pip’ command解决方法

在vscode中使用pip3安装selenium包提示
You should consider upgrading via the ‘python -m pip install --upgrade pip’ command解决方法

You should consider upgrading via the ‘python -m pip install --upgrade pip‘ command解决方法_第1张图片
表示pip版本不适配,可以用pip3 show pip查看,会告诉你当前版本和期望版本

在vscode控制台中执行pip3 install --upgrade pip3 超时,这是因为pip源在国外,所以连起来比较慢,可以改用国内的源

pip3 install  --upgrade pip -i https://pypi.douban.com/simple 

更新pip成功
You should consider upgrading via the ‘python -m pip install --upgrade pip‘ command解决方法_第2张图片
然后执行 pip3 install selenium就安装成功了
You should consider upgrading via the ‘python -m pip install --upgrade pip‘ command解决方法_第3张图片

可以通过pip3 show selenium查看当前安装的selenium版本You should consider upgrading via the ‘python -m pip install --upgrade pip‘ command解决方法_第4张图片

你可能感兴趣的:(python,python,开发语言,后端)