pip安裝selenium,pip install selenium 類型這樣錯誤
1 原因可能不是以管理員身份運行cmd安裝selenium
2 解決方式 也是要管理員身份運行
重點在最后一句
You are using pip version 9.0.1, however version 19.0.3 is available.
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.
此時輸入
python -m pip install --upgrade pip 出現新的錯誤
網上搜索的解決辦法是
使用管理員權限打開cmd 再重新輸入
python -m pip install --upgrade pip
但是並沒有生效 還在繼續報錯Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))
另一篇博文https://blog.csdn.net/qq_25964837/article/details/80295041顯示解決辦法為
輸入
pip install selectivesearch -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
試過以后
繼續報錯要升級版本
此時輸入Python -m pip install --upgrade pip