SendKeys是python中直接操作windows系统的模块,可以模拟对windows系统实现案件效果,但是本人在使用pip命令行安装SendKeys模块的时候出现了如下问题,SendKeys的Wheel无法创建,提示缺少 Microsoft Visual C++ 9.0
本人尝试去安装 Microsoft Visual C++ 9.0也就是vs2008,但是安装了之后还是没有任何作用,仍旧报错,最后通过whl文件实现安装
Collecting SendKeys
Using cached SendKeys-0.3.zip
Building wheels for collected packages: SendKeys
Running setup.py bdist_wheel for SendKeys ... error
Complete output from command C:\ProgramData\Miniconda2\python.exe -u -c "impor
t setuptools, tokenize;__file__='c:\\users\\admini~1\\appdata\\local\\temp\\pip-
build-uyasdq\\SendKeys\\setup.py';f=getattr(tokenize, 'open', open)(__file__);co
de=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec')
)" bdist_wheel -d c:\users\admini~1\appdata\local\temp\tmp16ciy7pip-wheel- --pyt
hon-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
copying SendKeys.py -> build\lib.win-amd64-2.7
running build_ext
building '_sendkeys' extension
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpytho
n27
----------------------------------------
Failed building wheel for SendKeys
Running setup.py clean for SendKeys
Failed to build SendKeys
Installing collected packages: SendKeys
Running setup.py install for SendKeys ... error
Complete output from command C:\ProgramData\Miniconda2\python.exe -u -c "imp
ort setuptools, tokenize;__file__='c:\\users\\admini~1\\appdata\\local\\temp\\pi
p-build-uyasdq\\SendKeys\\setup.py';f=getattr(tokenize, 'open', open)(__file__);
code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec
'))" install --record c:\users\admini~1\appdata\local\temp\pip-jy7_fl-record\ins
tall-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
copying SendKeys.py -> build\lib.win-amd64-2.7
running build_ext
building '_sendkeys' extension
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpyt
hon27
----------------------------------------
Command "C:\ProgramData\Miniconda2\python.exe -u -c "import setuptools, tokenize
;__file__='c:\\users\\admini~1\\appdata\\local\\temp\\pip-build-uyasdq\\SendKeys
\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\
r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:
\users\admini~1\appdata\local\temp\pip-jy7_fl-record\install-record.txt --single
-version-externally-managed --compile" failed with error code 1 in c:\users\admi
ni~1\appdata\local\temp\pip-build-uyasdq\SendKeys\