Cannot install Kivy from/in PyCharm - python-3.x

Win 10 Pro (64bit), Python 3.6.0, Pyhon 2017.1, Cython version 0.23, Visual Studio 2015
I am unable to install Kivy from within PyCharm (Settings/Project Interpreter) and have tried a couple of things such as:
- Installing Visual Studio 2015
- Installing Cython 0.23
I've read in another post the use of 'wheels' (I can't install kivy on windows 10 with py3.5) but can any one tell me how to apply that to PyCharm?
Below the error message:
Collecting Kivy
Using cached kivy-1.9.1.tar.gz
Requirement already satisfied: Kivy-Garden>=0.1.4 in c:\users\Stal\just atrial django project\lib\site-packages (from Kivy)
Requirement already satisfied: requests in c:\users\Stal\just atrial django project\lib\site-packages (from Kivy-Garden>=0.1.4->Kivy)
Installing collected packages: Kivy
Running setup.py install for Kivy: started
Running setup.py install for Kivy: finished with status 'error'
Complete output from command "C:\Users\Stal\Just atrial Django project\Scripts\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\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\Public\Documents\Wondershare\CreatorTemp\pip-043s8ql1-record\install-record.txt --single-version-externally-managed --compile --install-headers "C:\Users\Stal\Just atrial Django project\include\site\python3.6\Kivy":
Using distutils
Detected Cython version 0.23
User distribution detected, avoid portable command.
Windows platform detected, force GLEW usage.
Using this graphics system: OpenGL
WARNING: A problem occured while running pkg-config --libs --cflags gstreamer-1.0 (code 1)
b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
WARNING: A problem occured while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\kivy
copying kivy\animation.py -> build\lib.win-amd64-3.6\kivy
copying kivy\app.py -> build\lib.win-amd64-3.6\kivy
copying kivy\atlas.py -> build\lib.win-amd64-3.6\kivy
copying kivy\base.py -> build\lib.win-amd64-3.6\kivy
[............... edited for brevity .................... ]
copying kivy\cache.py -> build\lib.win-amd64-3.6\kivy
Creating library build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy_event.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy_event.cp36-win_amd64.exp
Generating code
Finished generating code
cythoning C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.pyx to C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.c
building 'kivy.weakproxy' extension
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Users\Stal\Just atrial Django project\include" -IC:\Users\Stal\AppData\Local\Programs\Python\Python36\include -IC:\Users\Stal\AppData\Local\Programs\Python\Python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt" /TcC:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.c /Fobuild\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.obj
weakproxy.c
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.c(10691): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.c(10709): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.c(10727): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.c(10901): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.c(10919): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.c(10937): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:C:\Users\Stal\Just atrial Django project\libs" /LIBPATH:C:\Users\Stal\AppData\Local\Programs\Python\Python36\libs /LIBPATH:C:\Users\Stal\AppData\Local\Programs\Python\Python36 "/LIBPATH:C:\Users\Stal\Just atrial Django project\PCbuild\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\um\x64" /EXPORT:PyInit_weakproxy build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.obj /OUT:build\lib.win-amd64-3.6\kivy\weakproxy.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.cp36-win_amd64.lib
weakproxy.obj : warning LNK4197: export 'PyInit_weakproxy' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\weakproxy.cp36-win_amd64.exp
Generating code
Finished generating code
cythoning C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.pyx to C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.c
building 'kivy.properties' extension
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Users\Stal\Just atrial Django project\include" -IC:\Users\Stal\AppData\Local\Programs\Python\Python36\include -IC:\Users\Stal\AppData\Local\Programs\Python\Python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt" /TcC:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.c /Fobuild\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.obj
properties.c
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.c(2303): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.c(2438): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.c(2467): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.c(2496): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.c(35272): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.c(35290): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.c(35308): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.c(35508): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.c(35526): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.c(35544): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:C:\Users\Stal\Just atrial Django project\libs" /LIBPATH:C:\Users\Stal\AppData\Local\Programs\Python\Python36\libs /LIBPATH:C:\Users\Stal\AppData\Local\Programs\Python\Python36 "/LIBPATH:C:\Users\Stal\Just atrial Django project\PCbuild\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\um\x64" /EXPORT:PyInit_properties build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.obj /OUT:build\lib.win-amd64-3.6\kivy\properties.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.cp36-win_amd64.lib
properties.obj : warning LNK4197: export 'PyInit_properties' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\properties.cp36-win_amd64.exp
Generating code
Finished generating code
cythoning C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics/buffer.pyx to C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\buffer.c
building 'kivy.graphics.buffer' extension
creating build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Users\Stal\Just atrial Django project\include" -IC:\Users\Stal\AppData\Local\Programs\Python\Python36\include -IC:\Users\Stal\AppData\Local\Programs\Python\Python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt" /TcC:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\buffer.c /Fobuild\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\buffer.obj
buffer.c
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\buffer.c(2718): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\buffer.c(2736): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\buffer.c(2754): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\buffer.c(2954): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\buffer.c(2972): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\buffer.c(2990): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:C:\Users\Stal\Just atrial Django project\libs" /LIBPATH:C:\Users\Stal\AppData\Local\Programs\Python\Python36\libs /LIBPATH:C:\Users\Stal\AppData\Local\Programs\Python\Python36 "/LIBPATH:C:\Users\Stal\Just atrial Django project\PCbuild\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\um\x64" /EXPORT:PyInit_buffer build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\buffer.obj /OUT:build\lib.win-amd64-3.6\kivy\graphics\buffer.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\buffer.cp36-win_amd64.lib
buffer.obj : warning LNK4197: export 'PyInit_buffer' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\buffer.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\buffer.cp36-win_amd64.exp
Generating code
Finished generating code
cythoning C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics/context.pyx to C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\context.c
building 'kivy.graphics.context' extension
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Users\Stal\Just atrial Django project\include" -IC:\Users\Stal\AppData\Local\Programs\Python\Python36\include -IC:\Users\Stal\AppData\Local\Programs\Python\Python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt" /TcC:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\context.c /Fobuild\temp.win-amd64-3.6\Release\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\kivy\graphics\context.obj
context.c
c:\users\Stal\appdata\local\temp\pycharm-packaging\kivy\kivy\graphics\gl_redirect.h(8): fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
Command ""C:\Users\Stal\Just atrial Django project\Scripts\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\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\Public\Documents\Wondershare\CreatorTemp\pip-043s8ql1-record\install-record.txt --single-version-externally-managed --compile --install-headers "C:\Users\Stal\Just atrial Django project\include\site\python3.6\Kivy"" failed with error code 1 in C:\Users\Stal\AppData\Local\Temp\pycharm-packaging\Kivy\

Why bother with a complex process if an easy approach is available.
Bypass the cython installation by using the nightly wheels. See https://kivy.org/docs/installation/installation-windows.html
You do the installation from the windows command prompt. Not the python interpreter.

Kivy should be installed traditionally using pip. Making a complex answer short: Kivy doesn't play nice with virtual environments due to dependencies your specific error is due to Kivy not being able to communicate with OpenGL, an essential dependency of Kivy.
WINDOWS (cmd):
pip install --upgrade kivy
LINUX (terminal):
sudo pip3 install --upgrade kivy
then confirm it was properly installed simply by:
>> python3
>> import Kivy

What it worked with me and Windows 10 was:
python -m pip install kivy

Related

Cython compiler directive language_level not respected

I am working with compiler directives for Cython (http://docs.cython.org/en/latest/src/reference/compilation.html#globally).
$ cat temp.pyx
# cython: language_level=3
print("abc", "def", sep=" ,") # invalid in python 2
Compiling:
$ cythonize -i world_dep.pyx
Error compiling Cython file:
------------------------------------------------------------
...
# cython: language_level=3
print("abc", "def", sep=" ,") ^
------------------------------------------------------------
temp.pyx:4:23: Expected ')', found '='
So language_level directive is not getting respected. Thus, cythonize ends up using Python 2 semantics and the error is thrown as the print statement above is invalid in Python 2.
However, including any Python statement makes this work:
$ cat temp.pyx
# cython: language_level=3
import os
print("abc", "def", sep=" ,")
Compiling and executing:
$ cythonize -i temp.pyx; python -c "import temp"
abc, def
Any idea how the import statement is making the language_level to be respected?
I have raised this same issue on the Cython GitHub repository as well?
As commented this bug is fixed:
$ /mnt/c/Python36/Scripts/cython.exe --version
Cython version 0.29.8
$ /mnt/c/Python36/Scripts/cythonize.exe -a -i temp.pyx
Compiling C:\Users\name\Documents\code\benchmark\temp.pyx because it changed.
[1/1] Cythonizing C:\Users\name\Documents\code\benchmark\temp.pyx
running build_ext
building 'temp' extension
creating C:\Users\name\Documents\code\benchmark\tmpw0giz82d\Release
creating C:\Users\name\Documents\code\benchmark\tmpw0giz82d\Release\Users
creating C:\Users\name\Documents\code\benchmark\tmpw0giz82d\Release\Users\name
creating C:\Users\name\Documents\code\benchmark\tmpw0giz82d\Release\Users\name\Documents
creating C:\Users\name\Documents\code\benchmark\tmpw0giz82d\Release\Users\name\Documents\code
creating C:\Users\name\Documents\code\benchmark\tmpw0giz82d\Release\Users\name\Documents\code\benchmark
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\name\appdata\local\programs\python\python36\inc
lude -Ic:\users\name\appdata\local\programs\python\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows K
its\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" /TcC:\Users\name\Documents\code\benchmark\temp.c /FoC:\Users\name\Documents\code\benchmark\tmpw0giz82d\Release\Users\name\Documents
\code\benchmark\temp.obj
temp.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\users\e1220
41\appdata\local\programs\python\python36\libs /LIBPATH:c:\users\name\appdata\local\programs\python\python36\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visu
al Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64
" /EXPORT:PyInit_temp C:\Users\name\Documents\code\benchmark\tmpw0giz82d\Release\Users\name\Documents\code\benchmark\temp.obj /OUT:C:\Users\name\Documents\code\benc
hmark\temp.cp36-win_amd64.pyd /IMPLIB:C:\Users\name\Documents\code\benchmark\tmpw0giz82d\Release\Users\name\Documents\code\benchmark\temp.cp36-win_amd64.lib
temp.obj : warning LNK4197: export 'PyInit_temp' specified multiple times; using first specification
Creating library C:\Users\name\Documents\code\benchmark\tmpw0giz82d\Release\Users\name\Documents\code\benchmark\temp.cp36-win_amd64.lib and object C:\Users\name\
Documents\code\benchmark\tmpw0giz82d\Release\Users\name\Documents\code\benchmark\temp.cp36-win_amd64.exp
Generating code
Finished generating code

LINK : fatal error LNK1171: unable to load mspdb140.dll (error code: 127)

I am trying to install pip install rasa_core and already added C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin; in my system path variable.
How can I resolve this error?
Following is my output while installing the rasa_core:
-3.5\twisted\internet\test\fake_CAs
copying src\twisted\mail\test\rfc822.message -> build\lib.win-amd64-3.5\twis
ted\mail\test
copying src\twisted\python\test\_deprecatetests.py.3only -> build\lib.win-am
d64-3.5\twisted\python\test
copying src\twisted\words\im\instancemessenger.glade -> build\lib.win-amd64-
3.5\twisted\words\im
copying src\twisted\words\xish\xpathparser.g -> build\lib.win-amd64-3.5\twis
ted\words\xish
running build_ext
building 'twisted.test.raiser' extension
creating build\temp.win-amd64-3.5
creating build\temp.win-amd64-3.5\Release
creating build\temp.win-amd64-3.5\Release\src
creating build\temp.win-amd64-3.5\Release\src\twisted
creating build\temp.win-amd64-3.5\Release\src\twisted\test
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe
/c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -ID:\Anaconda\envs\chatbot_p35\inc
lude -ID:\Anaconda\envs\chatbot_p35\include "-IC:\Program Files (x86)\Microsoft
Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.
14393.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um"
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Pro
gram Files (x86)\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files (x
86)\Windows Kits\10\include\10.0.14393.0\winrt" /Tcsrc/twisted/test/raiser.c /Fo
build\temp.win-amd64-3.5\Release\src/twisted/test/raiser.obj
raiser.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.ex
e /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPA
TH:D:\Anaconda\envs\chatbot_p35\libs /LIBPATH:D:\Anaconda\envs\chatbot_p35\PCbui
ld\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\am
d64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB
\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\ucrt\x
64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/L
IBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\um\x64" /EXPORT:P
yInit_raiser build\temp.win-amd64-3.5\Release\src/twisted/test/raiser.obj /OUT:b
uild\lib.win-amd64-3.5\twisted\test\raiser.cp35-win_amd64.pyd /IMPLIB:build\temp
.win-amd64-3.5\Release\src/twisted/test\raiser.cp35-win_amd64.lib
LINK : fatal error LNK1171: unable to load mspdb140.dll (error code: 127)
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\B
IN\\x86_amd64\\link.exe' failed with exit status 1171

Failed building wheel for fancy impute using pip install

I am trying to install Fancyimpute on anaconda py3.6, win 10, 64 Bit. Getting the following error.
Collecting fancyimpute
Requirement already satisfied: downhill in c:\anaconda3\lib\site-packages (from fancyimpute)
Requirement already satisfied: numpy>=1.10 in c:\anaconda3\lib\site-packages (from fancyimpute)
Requirement already satisfied: scikit-learn>=0.17.1 in c:\anaconda3\lib\site-packages (from fancyimpute)
Requirement already satisfied: theano in c:\anaconda3\lib\site-packages (from fancyimpute)
Requirement already satisfied: scipy in c:\anaconda3\lib\site-packages (from fancyimpute)
Requirement already satisfied: climate in c:\anaconda3\lib\site-packages (from fancyimpute)
Requirement already satisfied: knnimpute in c:\anaconda3\lib\site-packages (from fancyimpute)
Requirement already satisfied: six in c:\anaconda3\lib\site-packages (from fancyimpute)
Collecting cvxpy (from fancyimpute)
Using cached cvxpy-0.4.10-py3-none-any.whl
Requirement already satisfied: click in c:\anaconda3\lib\site-packages (from downhill->fancyimpute)
Requirement already satisfied: plac in c:\anaconda3\lib\site-packages (from climate->fancyimpute)
Requirement already satisfied: scs>=1.1.3 in c:\anaconda3\lib\site-packages (from cvxpy->fancyimpute)
Requirement already satisfied: fastcache in c:\anaconda3\lib\site-packages (from cvxpy->fancyimpute)
Requirement already satisfied: CVXcanon>=0.0.22 in c:\anaconda3\lib\site-packages (from cvxpy->fancyimpute)
Requirement already satisfied: toolz in c:\anaconda3\lib\site-packages (from cvxpy->fancyimpute)
Collecting ecos>=2 (from cvxpy->fancyimpute)
Using cached ecos-2.0.4.tar.gz
Requirement already satisfied: multiprocess in c:\anaconda3\lib\site-packages (from cvxpy->fancyimpute)
Requirement already satisfied: dill>=0.2.6 in c:\anaconda3\lib\site-packages (from multiprocess->cvxpy->fancyimpute)
Building wheels for collected packages: ecos
Running setup.py bdist_wheel for ecos: started
Running setup.py bdist_wheel for ecos: finished with status 'error'
Complete output from command C:\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Akshay\\AppData\\Local\\Temp\\pip-build-99u1p4_i\\ecos\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\Akshay\AppData\Local\Temp\tmpdmxhbqacpip-wheel- --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
copying src\ecos.py -> build\lib.win-amd64-3.6
running build_ext
building '_ecos' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\src
creating build\temp.win-amd64-3.6\Release\ecos
creating build\temp.win-amd64-3.6\Release\ecos\external
creating build\temp.win-amd64-3.6\Release\ecos\external\ldl
creating build\temp.win-amd64-3.6\Release\ecos\external\ldl\src
creating build\temp.win-amd64-3.6\Release\ecos\src
creating build\temp.win-amd64-3.6\Release\ecos\external\amd
creating build\temp.win-amd64-3.6\Release\ecos\external\amd\src
creating build\temp.win-amd64-3.6\Release\ecos\ecos_bb
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:\Anaconda3\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:\Anaconda3\include -IC:\Anaconda3\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" /Tcsrc/ecosmodule.c /Fobuild\temp.win-amd64-3.6\Release\src/ecosmodule.obj
ecosmodule.c
ecos/include\ecos_bb.h(72): warning C4005: 'INFINITY': macro redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(78): note: see previous definition of 'INFINITY'
ecos/include\ecos_bb.h(74): warning C4005: 'isinf': macro redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(263): note: see previous definition of 'isinf'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:\Anaconda3\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:\Anaconda3\include -IC:\Anaconda3\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" /Tcecos/external/ldl/src/ldl.c /Fobuild\temp.win-amd64-3.6\Release\ecos/external/ldl/src/ldl.obj
ldl.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(78): warning C4005: 'INFINITY': macro redefinition
ecos/external/SuiteSparse_config\../../include/glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(82): warning C4005: 'NAN': macro redefinition
ecos/external/SuiteSparse_config\../../include/glblopts.h(53): note: see previous definition of 'NAN'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:\Anaconda3\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:\Anaconda3\include -IC:\Anaconda3\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" /Tcecos/src/cone.c /Fobuild\temp.win-amd64-3.6\Release\ecos/src/cone.obj
cone.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(78): warning C4005: 'INFINITY': macro redefinition
c:\users\akshay\appdata\local\temp\pip-build-99u1p4_i\ecos\ecos\include\glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(82): warning C4005: 'NAN': macro redefinition
c:\users\akshay\appdata\local\temp\pip-build-99u1p4_i\ecos\ecos\include\glblopts.h(53): note: see previous definition of 'NAN'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:\Anaconda3\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:\Anaconda3\include -IC:\Anaconda3\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" /Tcecos/src/ctrlc.c /Fobuild\temp.win-amd64-3.6\Release\ecos/src/ctrlc.obj
ctrlc.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(78): warning C4005: 'INFINITY': macro redefinition
c:\users\akshay\appdata\local\temp\pip-build-99u1p4_i\ecos\ecos\include\glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(82): warning C4005: 'NAN': macro redefinition
c:\users\akshay\appdata\local\temp\pip-build-99u1p4_i\ecos\ecos\include\glblopts.h(53): note: see previous definition of 'NAN'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:\Anaconda3\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:\Anaconda3\include -IC:\Anaconda3\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" /Tcecos/src/ecos.c /Fobuild\temp.win-amd64-3.6\Release\ecos/src/ecos.obj
ecos.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(78): warning C4005: 'INFINITY': macro redefinition
c:\users\akshay\appdata\local\temp\pip-build-99u1p4_i\ecos\ecos\include\glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(82): warning C4005: 'NAN': macro redefinition
c:\users\akshay\appdata\local\temp\pip-build-99u1p4_i\ecos\ecos\include\glblopts.h(53): note: see previous definition of 'NAN'
ecos/src/ecos.c(1093): warning C4013: '_set_output_format' undefined; assuming extern returning int
ecos/src/ecos.c(1093): error C2065: '_TWO_DIGIT_EXPONENT': undeclared identifier
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
Running setup.py clean for ecos
Failed to build ecos
Installing collected packages: ecos, cvxpy, fancyimpute
Running setup.py install for ecos: started
Running setup.py install for ecos: finished with status 'error'
Complete output from command C:\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Akshay\\AppData\\Local\\Temp\\pip-build-99u1p4_i\\ecos\\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\Akshay\AppData\Local\Temp\pip-mgnxokqc-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
copying src\ecos.py -> build\lib.win-amd64-3.6
running build_ext
building '_ecos' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\src
creating build\temp.win-amd64-3.6\Release\ecos
creating build\temp.win-amd64-3.6\Release\ecos\external
creating build\temp.win-amd64-3.6\Release\ecos\external\ldl
creating build\temp.win-amd64-3.6\Release\ecos\external\ldl\src
creating build\temp.win-amd64-3.6\Release\ecos\src
creating build\temp.win-amd64-3.6\Release\ecos\external\amd
creating build\temp.win-amd64-3.6\Release\ecos\external\amd\src
creating build\temp.win-amd64-3.6\Release\ecos\ecos_bb
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:\Anaconda3\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:\Anaconda3\include -IC:\Anaconda3\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" /Tcsrc/ecosmodule.c /Fobuild\temp.win-amd64-3.6\Release\src/ecosmodule.obj
ecosmodule.c
ecos/include\ecos_bb.h(72): warning C4005: 'INFINITY': macro redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(78): note: see previous definition of 'INFINITY'
ecos/include\ecos_bb.h(74): warning C4005: 'isinf': macro redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(263): note: see previous definition of 'isinf'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:\Anaconda3\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:\Anaconda3\include -IC:\Anaconda3\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" /Tcecos/external/ldl/src/ldl.c /Fobuild\temp.win-amd64-3.6\Release\ecos/external/ldl/src/ldl.obj
ldl.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(78): warning C4005: 'INFINITY': macro redefinition
ecos/external/SuiteSparse_config\../../include/glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(82): warning C4005: 'NAN': macro redefinition
ecos/external/SuiteSparse_config\../../include/glblopts.h(53): note: see previous definition of 'NAN'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:\Anaconda3\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:\Anaconda3\include -IC:\Anaconda3\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" /Tcecos/src/cone.c /Fobuild\temp.win-amd64-3.6\Release\ecos/src/cone.obj
cone.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(78): warning C4005: 'INFINITY': macro redefinition
c:\users\akshay\appdata\local\temp\pip-build-99u1p4_i\ecos\ecos\include\glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(82): warning C4005: 'NAN': macro redefinition
c:\users\akshay\appdata\local\temp\pip-build-99u1p4_i\ecos\ecos\include\glblopts.h(53): note: see previous definition of 'NAN'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:\Anaconda3\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:\Anaconda3\include -IC:\Anaconda3\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" /Tcecos/src/ctrlc.c /Fobuild\temp.win-amd64-3.6\Release\ecos/src/ctrlc.obj
ctrlc.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(78): warning C4005: 'INFINITY': macro redefinition
c:\users\akshay\appdata\local\temp\pip-build-99u1p4_i\ecos\ecos\include\glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(82): warning C4005: 'NAN': macro redefinition
c:\users\akshay\appdata\local\temp\pip-build-99u1p4_i\ecos\ecos\include\glblopts.h(53): note: see previous definition of 'NAN'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHON -DDLONG -DLDL_LONG -DCTRLC=1 -Iecos/include -IC:\Anaconda3\lib\site-packages\numpy\core\include -Iecos/external/amd/include -Iecos/external/ldl/include -Iecos/external/SuiteSparse_config -IC:\Anaconda3\include -IC:\Anaconda3\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" /Tcecos/src/ecos.c /Fobuild\temp.win-amd64-3.6\Release\ecos/src/ecos.obj
ecos.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(78): warning C4005: 'INFINITY': macro redefinition
c:\users\akshay\appdata\local\temp\pip-build-99u1p4_i\ecos\ecos\include\glblopts.h(58): note: see previous definition of 'INFINITY'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h(82): warning C4005: 'NAN': macro redefinition
c:\users\akshay\appdata\local\temp\pip-build-99u1p4_i\ecos\ecos\include\glblopts.h(53): note: see previous definition of 'NAN'
ecos/src/ecos.c(1093): warning C4013: '_set_output_format' undefined; assuming extern returning int
ecos/src/ecos.c(1093): error C2065: '_TWO_DIGIT_EXPONENT': undeclared identifier
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
Failed building wheel for ecos
Command "C:\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Akshay\\AppData\\Local\\Temp\\pip-build-99u1p4_i\\ecos\\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\Akshay\AppData\Local\Temp\pip-mgnxokqc-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Akshay\AppData\Local\Temp\pip-build-99u1p4_i\ecos\
The error has something to do with the following -
Failed building wheel for ecos
Initially it was showing me error with the visual studio c++ and after installation of VS 2015 C++ Build Tools it still gave a similar error, but this time if was due to something else. I haven't been able to figure out a way to fix this. Will appreciate some help with this.
Thanks in advance!
Ran into the same problem (ecos 2.0.4) and came upon this thread: ecos python issue
Solved the problem by manually downloading the appropriate .whl file (Python version and Windows architecture): Windows binaries
Navigated to the downloaded file (in terminal) and ran pip install filename.whl.

How can I install the pyldap package on Windows?

I've been trying to add the pyldap package using pip from the command line :
pip install pyldap
But i'm getting this error :
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.25.1 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/local/include/sasl -Ic:\python\include -Ic:\python\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-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" /TcModules/LDAPObject.c /Fobuild\temp.win32-3.6\Release\Modules/LDAPObject.obj
LDAPObject.c
c:\users\myUser\appdata\local\temp\pip-build-tzxw0vq9\pyldap\modules\errors.h(8): fatal error C1083: Cannot open include file: 'lber.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe' failed with exit status 2
I've installed OpenLDAP for Windows, but it didn't change a thing.
Can pyldap be install on windows 10? Am i missing a prerequisite?
I've managed to install the pyldap package using the wheel file from this website :
Gohlke's wheels

Error LNK1181 while installing mysqlclient

System Windows 10. Python 3.5. VS 2015 installed.
Got this error after fixing "unable to find vcvarsall.bat" Error. I don't know what to do with all this stuff. Please help.
Error log :
Collecting mysqlclient
Using cached mysqlclient-1.3.7.tar.gz
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient: started
Running setup.py install for mysqlclient: finished with status 'error'
Complete output from command c:\python3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Yuriy\\AppData\\Local\\Temp\\pip-build-wq1amnk2\\mysqlclient\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Yuriy\AppData\Local\Temp\pip-t5ht7lva-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.5
copying _mysql_exceptions.py -> build\lib.win32-3.5
creating build\lib.win32-3.5\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win32-3.5\MySQLdb
copying MySQLdb\compat.py -> build\lib.win32-3.5\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.5\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.5\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.5\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.5\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.5\MySQLdb
creating build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win32-3.5\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.5\MySQLdb\constants
running build_ext
building '_mysql' extension
creating build\temp.win32-3.5
creating build\temp.win32-3.5\Release
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dversion_info=(1,3,7,'final',1) -D__version__=1.3.7 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\include" -Ic:\python3\include -Ic:\python3\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-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" /Tc_mysql.c /Fobuild\temp.win32-3.5\Release\_mysql.obj /Zl
_mysql.c
_mysql.c(1461): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\string.h(346): note: ??. ?????????? "strncpy"
_mysql.c(1463): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\string.h(255): note: ??. ?????????? "strncat"
_mysql.c(1465): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\string.h(255): note: ??. ?????????? "strncat"
_mysql.c(1499): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\string.h(346): note: ??. ?????????? "strncpy"
_mysql.c(1501): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\string.h(255): note: ??. ?????????? "strncat"
_mysql.c(1504): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\string.h(255): note: ??. ?????????? "strncat"
_mysql.c(2236): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\stdio.h(1769): note: ??. ?????????? "sprintf"
_mysql.c(2240): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\stdio.h(1769): note: ??. ?????????? "sprintf"
_mysql.c(2316): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\stdio.h(1769): note: ??. ?????????? "sprintf"
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:C:\Program Files (x86)\MySQL\MySQL Connector C 6.1\lib\vs14" /LIBPATH:c:\python3\libs /LIBPATH:c:\python3\PCbuild\win32 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x86" kernel32.lib advapi32.lib wsock32.lib mysqlclient.lib /EXPORT:PyInit__mysql build\temp.win32-3.5\Release\_mysql.obj /OUT:build\lib.win32-3.5\_mysql.cp35-win32.pyd /IMPLIB:build\temp.win32-3.5\Release\_mysql.cp35-win32.lib /MANIFEST
LINK : fatal error LNK1181:
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\link.exe' failed with exit status 1181
----------------------------------------
If you need any more info, fill free to ask,
Thanks

Resources