为什么我从pip安装getch得到错误?

时间:2016-01-03 18:46:50

标签: python pip

我正在做一个小文件检查器,我需要做一个(字符按?)命令。所以我用了getch。尝试pip安装时出现此错误:

Command "c:\python27\python.exe -c "import setuptools, tokenize;__file__='c:\\us
ers\\manolo\\appdata\\local\\temp\\pip-build-ehxrw3\\getch\\setup.py';exec(compi
le(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __fil
e__, 'exec'))" install --record c:\users\manolo\appdata\local\temp\pip-flekfr-re
cord\install-record.txt --single-version-externally-managed --compile" failed wi
th error code 1 in c:\users\manolo\appdata\local\temp\pip-build-ehxrw3\getch

有人能告诉我如何解决这个问题吗?

另外,我在win32,windows 7上运行python 2.7。

1 个答案:

答案 0 :(得分:0)

您可以更改msvcrt的getch,并在Windows上预先安装。

相关问题