PermissionError (WinError 31) 连接到系统的设备无法正常工作

Kal*_*eab 3 python pip windows-8.1

我正在尝试通过python get-pip.py命令在我的 python3.6 virtualenv 上安装 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>
Run Code Online (Sandbox Code Playgroud)

你会推荐什么解决方案?我正在使用 Windows 8.1 机器。

小智 8

I am on Windows 7. I came across the same bug. I read the discussion here. It seems to be caused by UTF-8 support if you have English Windows.

Just type:

chcp 1252
Run Code Online (Sandbox Code Playgroud)

then run your pip again.