简体   繁体   中英

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 something 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.

在硬盘上搜索文件swish-eh ,并确保在-I (=添加包含路径)后的命令行中提到目录。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM