Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python PermissionError(WinError 31)连接到系统的设备不工作_Python_Pip_Windows 8.1 - Fatal编程技术网

Python PermissionError(WinError 31)连接到系统的设备不工作

Python PermissionError(WinError 31)连接到系统的设备不工作,python,pip,windows-8.1,Python,Pip,Windows 8.1,我正试图通过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 44c8a

我正试图通过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>
(myvenv\u python3)C:\Users\Kaleab\Downloads>python get-pip.py--trusted host=pypi
.org
收集点
正在下载https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b
44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl(1.3MB)
由于环境错误[WinError 31]无法安装程序包位于的设备
连接到系统的设备不工作
考虑使用“-Upple”选项或检查权限。
在中忽略异常:
PermissionError:[WinError 31]连接到系统的设备在中不起作用
G
(myvenv_python3)C:\Users\Kaleab\Downloads>

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

许可证错误的原因是我将注册表代码页更改为65001:
REG添加HKCU\Console/v代码页/t REG\u DWORD/d 65001/f

因此,请删除HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor上的自动运行注册表。如果您想使用utf-8(65001),只需在命令提示符下使用
chcp 65001

我在Windows 7上。我遇到了同样的错误。 我读了那本书。这似乎是由于UTF-8的支持,如果你有英文窗口

仅键入:

chcp 1252
然后再跑一次