gpt4 book ai didi

python - PermissionError (WinError 31) 连接到系统的设备无法运行

转载 作者:行者123 更新时间:2023-12-03 03:17:48 24 4
gpt4 key购买 nike

我尝试在 python3.6 virtualenv 上通过 python get-pip.py 命令安装 pip,但收到错误:

(myvenv_python3) C:\Users\Kaleab\Downloads>python get-pip.py --trusted-host=pypi
.org
Collecting pip
Downloading https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b
44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl (1.3MB)

Could not install packages due to an EnvironmentError: [WinError 31] A device at
tached to the system is not functioning
Consider using the `--user` option or check the permissions.

Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-
8'>
PermissionError: [WinError 31] A device attached to the system is not functionin
g

(myvenv_python3) C:\Users\Kaleab\Downloads>

您会推荐什么解决方案?我使用的是 Windows 8.1 机器。

最佳答案

我使用的是 Windows 7。我遇到了同样的错误。我读了discussion here 。如果您使用的是英文 Windows,这似乎是由 UTF-8 支持引起的。

只需输入:

chcp 1252

然后再次运行你的 pip。

关于python - PermissionError (WinError 31) 连接到系统的设备无法运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50085366/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com