windows - windows:pip:建立新连接失败:[WinError 10013]
问题描述
我已经在 Windows 10 64 位计算机上安装了 python
C:\WINDOWS\system32>python --version
Python 3.8.6
C:\WINDOWS\system32>pip --version
pip 20.2.1 from c:\program files\python38\lib\site-packages\pip (python 3.8)
所以 python 和 pip 已安装并且正在工作。
现在我想以管理员身份使用 cmd 提示符安装笔记本(或任何软件包)
C:\WINDOWS\system32>pip install notebook
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002156655FBB0>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/notebook/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002156655FD60>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/notebook/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002156652CB20>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/notebook/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000021566552A00>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/notebook/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000215665527F0>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/notebook/
ERROR: Could not find a version that satisfies the requirement notebook (from versions: none)
ERROR: No matching distribution found for notebook
C:\WINDOWS\system32>
我收到上述错误。
无论包名称如何,即使是熊猫,我都会收到相同的错误
我已经寻找解决方案,问题在任何地方都没有明确解决
我也试过:
C:\WINDOWS\system32>python -m pip install --upgrade pip
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000026D8ABC41C0>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000026D8ABC4940>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000026D8ABE95E0>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000026D8ABE9790>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000026D8ABE9940>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/pip/
Requirement already up-to-date: pip in c:\program files\python38\lib\site-packages (20.2.1)
任何想法如何解决这个问题
解决方案
推荐阅读
- coldfusion - Coldfusion动态列名传递给函数
- r - 从一列/行值等于列名的单元格中提取值
- java - 休眠无法找到具有逻辑名称的列
- lync - UCMA 5.0 - 如果会议由 UCMA 应用程序创建,文件共享将不起作用
- android - ConstraintLayout 内容卡在屏幕中间
- css - Safari 和字体功能设置:“lnum”失败
- mysql - 排除相同的值和特定的规则集查询
- javascript - 为什么此代码不显示文本字段中的 expexres 值
- http - Web 浏览器如何支持 HLS?
- odoo-11 - 当我在 odoo 中发送销售订单时,如何替换外发电子邮件中的“Powered by Odoo”(页脚)?