Ubuntu 为什么pip3软件包没有安装在特定的网络上?

Ubuntu 为什么pip3软件包没有安装在特定的网络上?,ubuntu,pip,ubuntu-20.04,Ubuntu,Pip,Ubuntu 20.04,我最近安装了Ubuntu。安装后,我尝试安装pip3软件包,但它们没有安装在我家的wifi网络上。然而,这些软件包正在我的移动数据网络上安装,并从另一台笔记本电脑连接热点 pip3 install selenium 我试了很多次才得到答案。以下依赖项解决了此问题: sudo apt get install python3 python3 dev python3 pip libxml2 dev libxslt1 dev zlib1g dev libffi dev libssl dev您是否尝试过

我最近安装了Ubuntu。安装后,我尝试安装
pip3
软件包,但它们没有安装在我家的wifi网络上。然而,这些软件包正在我的移动数据网络上安装,并从另一台笔记本电脑连接热点

pip3 install selenium

我试了很多次才得到答案。以下依赖项解决了此问题:
sudo apt get install python3 python3 dev python3 pip libxml2 dev libxslt1 dev zlib1g dev libffi dev libssl dev

您是否尝试过
sudo pip3 install selenium
?是的,它会产生相同的结果。
Collecting selenium
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl

ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl (Caused by ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)"))