2005年06月10日 星期五 14:45
when i install pysqlite in python2.41,it show error below,and i install other package error also ocur, ,but when i copy the cmdline ,it can run without error,who can help me: ''''' running install running build running build_py running build_ext building '_sqlite' extension C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -I..\sq lite -If:\python24\include -If:\python24\PC /Tc_sqlite.c /Fobuild\temp.win32-2.4 \Release\_sqlite.obj _sqlite.c f:\python24\include\pyconfig.h(30) : fatal error C1083: Cannot open include file : 'io.h': No such file or directory error: command 'C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe' failed with exit status 2
2005年06月10日 星期五 15:13
你下的是源码版,它需要编译,需要VC6.0才可以。有exe格式下载呀。 2005/6/10, mahongquan <mahongquan730208 at 163.com>: > when i install pysqlite in python2.41,it show error below,and i install other package error also ocur, > ,but when i copy the cmdline ,it can run without error,who can help me: > ''''' > running install > running build > running build_py > running build_ext > building '_sqlite' extension > C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -I..\sq > lite -If:\python24\include -If:\python24\PC /Tc_sqlite.c /Fobuild\temp.win32-2.4 > \Release\_sqlite.obj > _sqlite.c > f:\python24\include\pyconfig.h(30) : fatal error C1083: Cannot open include file > : 'io.h': No such file or directory > error: command 'C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe' failed with exit status 2 > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > > > -- I like python! My Donews Blog: http://www.donews.net/limodou New Google Maillist: http://groups-beta.google.com/group/python-cn
2005年06月13日 星期一 13:28
我的计算机上装有vs6.0,并且我安装有python2.2,2.3,2.4,只是在python2.4上安装时出错误。而且我把出错的那一行编译命令拷贝下来,运行就可以正常编译出*.obj。 ----- Original Message ----- From: "limodou" <limodou at gmail.com> To: <python-chinese at lists.python.cn> Sent: Friday, June 10, 2005 3:13 PM Subject: Re: [python-chinese] python2.41 distutil error > 你下的是源码版,它需要编译,需要VC6.0才可以。有exe格式下载呀。 > > 2005/6/10, mahongquan <mahongquan730208 at 163.com>: > > when i install pysqlite in python2.41,it show error below,and i install other package error also ocur, > > ,but when i copy the cmdline ,it can run without error,who can help me: > > ''''' > > running install > > running build > > running build_py > > running build_ext > > building '_sqlite' extension > > C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -I..\sq > > lite -If:\python24\include -If:\python24\PC /Tc_sqlite.c /Fobuild\temp.win32-2.4 > > \Release\_sqlite.obj > > _sqlite.c > > f:\python24\include\pyconfig.h(30) : fatal error C1083: Cannot open include file > > : 'io.h': No such file or directory > > error: command 'C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe' failed with exit status 2 > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > -- > I like python! > My Donews Blog: http://www.donews.net/limodou > New Google Maillist: http://groups-beta.google.com/group/python-cn > -------------------------------------------------------------------------------- > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese >
2005年06月13日 星期一 13:39
看出错信息可能是你的python2.4不是开发版,可能头文件不全,因为报没找到io.h。还是下载个exe的安装起来方便些。 在 05-6-13,mahongquan<mahongquan730208 at 163.com> 写道: > 我的计算机上装有vs6.0,并且我安装有python2.2,2.3,2.4,只是在python2.4上安装时出错误。而且我把出错的那一行编译命令拷贝下来,运行就可以正常编译出*.obj。 > ----- Original Message ----- > From: "limodou" <limodou at gmail.com> > To: <python-chinese at lists.python.cn> > Sent: Friday, June 10, 2005 3:13 PM > Subject: Re: [python-chinese] python2.41 distutil error > > > 你下的是源码版,它需要编译,需要VC6.0才可以。有exe格式下载呀。 > > > > 2005/6/10, mahongquan <mahongquan730208 at 163.com>: > > > when i install pysqlite in python2.41,it show error below,and i install other package error also ocur, > > > ,but when i copy the cmdline ,it can run without error,who can help me: > > > ''''' > > > running install > > > running build > > > running build_py > > > running build_ext > > > building '_sqlite' extension > > > C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -I..\sq > > > lite -If:\python24\include -If:\python24\PC /Tc_sqlite.c /Fobuild\temp.win32-2.4 > > > \Release\_sqlite.obj > > > _sqlite.c > > > f:\python24\include\pyconfig.h(30) : fatal error C1083: Cannot open include file > > > : 'io.h': No such file or directory > > > error: command 'C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe' failed with exit status 2 > > > _______________________________________________ > > > python-chinese list > > > python-chinese at lists.python.cn > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > > > > > > > -- > > I like python! > > My Donews Blog: http://www.donews.net/limodou > > New Google Maillist: http://groups-beta.google.com/group/python-cn > > > > -------------------------------------------------------------------------------- > > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > -- I like python! My Donews Blog: http://www.donews.net/limodou New Google Maillist: http://groups-beta.google.com/group/python-cn
2005年06月13日 星期一 13:46
io.h应该是标准C库的一个头文件吧,GCC和VC中应该都有这个文件,可能是在控制 台下某些环境变量没加载,所以找不到头文件。试着运行VC目录下的 vcvars32.bat把环境变量设置一下再编译。 limodou wrote: >你下的是源码版,它需要编译,需要VC6.0才可以。有exe格式下载呀。 > >2005/6/10, mahongquan <mahongquan730208 at 163.com>: > > >>when i install pysqlite in python2.41,it show error below,and i install other package error also ocur, >>,but when i copy the cmdline ,it can run without error,who can help me: >>''''' >>running install >>running build >>running build_py >>running build_ext >>building '_sqlite' extension >>C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -I..\sq >>lite -If:\python24\include -If:\python24\PC /Tc_sqlite.c /Fobuild\temp.win32-2.4 >>\Release\_sqlite.obj >>_sqlite.c >>f:\python24\include\pyconfig.h(30) : fatal error C1083: Cannot open include file >>: 'io.h': No such file or directory >>error: command 'C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe' failed with exit status 2 >>_______________________________________________ >>python-chinese list >>python-chinese at lists.python.cn >>http://python.cn/mailman/listinfo/python-chinese >> >> >> >> >> > > > > >------------------------------------------------------------------------ > >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese > >
2005年06月13日 星期一 14:19
我的计算机上装有vs6.0,并且我安装有python2.2,2.3,2.4,只是在python2.4上安装时出错误。而且我把出错的那一行编译命令拷贝下来,运行就可以正常编译出*.obj。会不会是distutil运行时和命令行单独编译时环境变量不同,所以我怀疑是python2.41的bug. ----- Original Message ----- From: "cpunion" <cpunion at 263.net> To: <python-chinese at lists.python.cn> Sent: Monday, June 13, 2005 1:46 PM Subject: Re: [python-chinese] python2.41 distutil error > io.h应该是标准C库的一个头文件吧,GCC和VC中应该都有这个文件,可能是在控制 > 台下某些环境变量没加载,所以找不到头文件。试着运行VC目录下的 > vcvars32.bat把环境变量设置一下再编译。 > > limodou wrote: > > >你下的是源码版,它需要编译,需要VC6.0才可以。有exe格式下载呀。 > > > >2005/6/10, mahongquan <mahongquan730208 at 163.com>: > > > > > >>when i install pysqlite in python2.41,it show error below,and i install other package error also ocur, > >>,but when i copy the cmdline ,it can run without error,who can help me: > >>''''' > >>running install > >>running build > >>running build_py > >>running build_ext > >>building '_sqlite' extension > >>C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -I..\sq > >>lite -If:\python24\include -If:\python24\PC /Tc_sqlite.c /Fobuild\temp.win32-2.4 > >>\Release\_sqlite.obj > >>_sqlite.c > >>f:\python24\include\pyconfig.h(30) : fatal error C1083: Cannot open include file > >>: 'io.h': No such file or directory > >>error: command 'C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe' failed with exit status 2 > >>_______________________________________________ > >>python-chinese list > >>python-chinese at lists.python.cn > >>http://python.cn/mailman/listinfo/python-chinese > >> > >> > >> > >> > >> > > > > > > > > > >------------------------------------------------------------------------ > > > >_______________________________________________ > >python-chinese list > >python-chinese at lists.python.cn > >http://python.cn/mailman/listinfo/python-chinese > > > > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese >
2005年06月13日 星期一 14:57
我已经明白了,问题是我安装VS7.1后手工删除了,编译时到原来目录查找不到头文件。将注册表中的VS7.1信息删除后,出现以下正确提示信息。而python2.41必须用version 7.1以上版本编译扩展模块。 running install running build running build_py running build_ext building '_sqlite' extension error: Python was built with version 7.1 of Visual Studio, and extensions need t o be built with the same version of the compiler, but it isn't installed. ----- Original Message ----- From: "mahongquan" <mahongquan730208 at 163.com> To: <python-chinese at lists.python.cn> Sent: Monday, June 13, 2005 2:19 PM Subject: Re: [python-chinese] python2.41 distutil error
Zeuux © 2025
京ICP备05028076号