sendkeys-py-si
sendkeys-py-si copied to clipboard
Doesn't work with Python 3
Collecting SendKeys Using cached SendKeys-0.3.zip Installing collected packages: SendKeys Running setup.py install for SendKeys: started Running setup.py install for SendKeys: finished with status 'error' Complete output from command "F:\Pycharm Projects\untitled1\venv\Scripts\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\leeet\AppData\Local\Temp\pycharm-packaging\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\leeet\AppData\Local\Temp\pip-s4byu8pv-record\install-record.txt --single-version-externally-managed --compile --install-headers "F:\Pycharm Projects\untitled1\venv\include\site\python3.6\SendKeys": running install running build running build_py creating build creating build\lib.win-amd64-3.6 copying SendKeys.py -> build\lib.win-amd64-3.6 warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building '_sendkeys' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IF:\Pycharm Projects\untitled1\venv\include" -IC:\Users\leeet\AppData\Local\Programs\Python\Python36\include -IC:\Users\leeet\AppData\Local\Programs\Python\Python36\include /Tc_sendkeys.c /Fobuild\temp.win-amd64-3.6\Release\_sendkeys.obj
error: command 'cl.exe' failed: No such file or directory
----------------------------------------
Command ""F:\Pycharm Projects\untitled1\venv\Scripts\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\leeet\AppData\Local\Temp\pycharm-packaging\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\leeet\AppData\Local\Temp\pip-s4byu8pv-record\install-record.txt --single-version-externally-managed --compile --install-headers "F:\Pycharm Projects\untitled1\venv\include\site\python3.6\SendKeys"" failed with error code 1 in C:\Users\leeet\AppData\Local\Temp\pycharm-packaging\SendKeys\
@LordHandLee For installing this version of SendKeys or original v3, installation has a compile step. Compiling requires that you have some version of MS Visual Studio installed that python can find and use; for python 2.7 - MSVS 2008 is required, for python >= 3.5 I think you can use anything >= MSVS 2015.
You may want to find and run the vcvarsall.bat
/vsvars32.bat
in the console before running python setup.py
or pip install git+[THIS-REPO]
. The vcvarsall.bat
is somewhere inside the corresponding Visual Studio install directory e.g.
MSVS 2008:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat
MSVS 2015:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\vsvars32.bat
I tried running C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\vsvars32.bat
but got ERROR: Cannot determine the location of the VS Common Tools folder
.