command 'cl.exe' failed: No such file or directory

2,628 views
Skip to first unread message

Shaohui Zhang

unread,
Dec 21, 2016, 8:07:00 AM12/21/16
to Kivy users support
when i try to install pyjnius using pip install, i was received the error as follows:

$ pip install git+git://github.com/kivy/pyjnius.git
Collecting git+git://github.com/kivy/pyjnius.git
  Cloning git://github.com/kivy/pyjnius.git to c:\users\zhangsha\appdata\local\temp\pip-08w43wye-build
Requirement already satisfied: six>=1.7.0 in c:\users\zhangsha\appdata\local\programs\python\python35\lib\site-packages (from jnius==1.1.dev0)
Requirement already satisfied: cython in c:\users\zhangsha\appdata\local\programs\python\python35\lib\site-packages (from jnius==1.1.dev0)
Installing collected packages: jnius
  Running setup.py install for jnius: started
    Running setup.py install for jnius: finished with status 'error'
    Complete output from command c:\users\zhangsha\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\zhangsha\\AppData\\Local\\Temp\\pip-08w43wye-build\\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\zhangsha\AppData\Local\Temp\pip-__6kh1a9-record\install-record.txt --single-version-externally-managed --compile:
    WARNING: Not able to assign machine() = AMD64 to a cpu value!
             Using cpu = 'i386' instead!
    c:\users\zhangsha\appdata\local\programs\python\python35\lib\site-packages\setuptools\dist.py:285: UserWarning: Normalizing '1.1-dev' to '1.1.dev0'
      normalized_version,
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.5
    copying jnius_config.py -> build\lib.win-amd64-3.5
    creating build\lib.win-amd64-3.5\jnius
    copying jnius\reflect.py -> build\lib.win-amd64-3.5\jnius
    copying jnius\signatures.py -> build\lib.win-amd64-3.5\jnius
    copying jnius\__init__.py -> build\lib.win-amd64-3.5\jnius
    running build_ext
    cythoning jnius\jnius.pyx to jnius\jnius.c
    building 'jnius' extension
    creating build\temp.win-amd64-3.5
    creating build\temp.win-amd64-3.5\Release
    creating build\temp.win-amd64-3.5\Release\jnius
    cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Program Files\Java\jdk1.8.0_112\include" "-IC:\Program Files\Java\jdk1.8.0_112\include\win32" -Ic:\users\zhangsha\appdata\local\programs\python\python35\include -Ic:\users\zhangsha\appdata\local\programs\python\python35\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcjnius\jnius.c /Fobuild\temp.win-amd64-3.5\Release\jnius\jnius.obj
    error: command 'cl.exe' failed: No such file or directory

    ----------------------------------------
Command "c:\users\zhangsha\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\zhangsha\\AppData\\Local\\Temp\\pip-08w43wye-build\\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\zhangsha\AppData\Local\Temp\pip-__6kh1a9-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\zhangsha\AppData\Local\Temp\pip-08w43wye-build\

in addition, i often using the python 3.5 (64 bit) and V C++ 2015 (64 BIT).

THANKS VERY MUCH FOR YOUR HELP!

BEST,

Shaohui

cole.w....@gmail.com

unread,
Apr 9, 2017, 7:23:45 PM4/9/17
to Kivy users support
I'm having the same issue. Did you ever solve your problem?

Cole

ZenCODE

unread,
Apr 10, 2017, 4:18:53 AM4/10/17
to Kivy users support
Okay, so I am unashamed fan of KivyInstalller: https://github.com/KeyWeeUsr/KivyInstaller

Unless you are doing dev work, it's a great solution. Seems like you are working on Windows. Does it work for you?

Binh Nguyen

unread,
Apr 10, 2017, 12:27:11 PM4/10/17
to Kivy users support
I looked up "error: command 'cl.exe' failed: No such file or directory" and it feels like you either don't have the correct packages installed or else your PATH environment variable (from which you determine which directories executable files can be run from) is missing the location of 'cl.exe'?

ZenCODE

unread,
Apr 11, 2017, 11:34:55 PM4/11/17
to Kivy users support
Okay, but that is probably trying to install it locally? i.e. into your native python installation. Please try KivyInstaller (link above) to just get you up and running. Once we know that is working, we can investigate further...
Reply all
Reply to author
Forward
0 new messages