我试图在我的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计算机。在
PermissionError的原因是我将注册表代码页更改为65001:
REG ADD HKCU\Console /v CodePage /t REG_DWORD /d 65001 /f
因此,请删除HKEY U LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor的自动运行注册表。如果您想使用utf-8(65001),只需在命令提示符下使用chcp 65001
。在我在Windows7上。我遇到了同样的虫子。 我读了discussion here。如果你有英文视窗,这似乎是由UTF-8支持引起的。在
只需键入:
然后再运行你的pip。在
相关问题 更多 >
编程相关推荐