python模块下载失败_python2.7 SendKeys模块安装失败解决方法

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\

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值