Installing a python module on windows
I am trying to install a module called Swish-E 0.5 and for some reason im getting an error when running the command
python setup.py install
I keep getting this error no matter what module i try to install. I have tried installing other modules to see if the problem lay in that specific module however it does not.
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W
3 /GS- /DNDEBUG -I/usr/local/include -I/usr/include -IC:\Python26\include -IC:\P
ython26\PC /TcSwishE.c /Fobuild\temp.win32-2.6\Release\SwishE.obj
SwishE.c
SwishE.c(35) : fatal error C1083: Cannot open include file: 'swish-e.h': No such
file or directory
error: command '"c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' fa
iled with exit status 2
This is the error DOS keeps dumping, no matter what module. Unfortunately i cannot find the binary file for the module i need therefore i must fix this problem.
I have a feeling it is somet开发者_运维百科hing to do with my C compiler if someone could please help it would be greatly appreciated.
I you haven't already, install Swish-e. If you have, then grab the development files from the source tarball and put them somewhere the compiler can find them.
Search your hard disk for the file swish-e.h
and make sure the directory is mentioned in the command line after a -I
(= add include path).
You probably need to install/compile Swish-e itself before building Python module for it. Also missing header points to this cause - the Python module uses Swish-e library and headers.
精彩评论