请帮我看看吧,如何看待信仰这个问题题是"未解决的外部元素和符号",麻烦了。

在网上搜索了一下,由于大多数搜索引擎都不支持这2个字符,逼于无奈就上来看看各位高手会不会了:♀♂分别读作什么?还有说一下关于它们的起源~谢谢~
这两个符号是生物上的符号。
○在上的,读做“母本”
○在下的,读做“父本”
(不好意思,我不会打这两个符号,但确保这两个符号是正确的)
在高中《生物》第二册,有关植物杂交方面的知识讲到。
有些地方的厕所上画这两个符号,分别代表女性、男性。如果不知道的人可就麻烦了!
它们的来源:
这是做“一对相对性状的遗传实验”中用到的符号:
用来做杂交的两个植物就是亲本(用P表示);
用哪一个植物提供花粉,哪一个植物就是“父本”(用“○在下的↑”表示)
接受花粉的植株就是“母本”(用“○在上的”表示)
其他答案(共7个回答)
上来的,我猜得
或者代表男女的第一特征
------------------“♂”与“♀”的来源 -----------------
早在公元前4000年左右,居住在幼发拉底河和底格里斯河流经区域的苏...
男女符号♂、♀的来历有两种说法。
第一种说法:因为爱神丘比特的弓箭袋状如“♂”,女神维纳爱美,常持小镜子形似“♀”,人们就用这两个符号作为爱神和女神的代号,后来...
男女符?♂、♀的由?碛?煞N說法~
  第一種說法︰因??凵袂鸨忍氐墓??鼱钊纭啊帷保??窬S納?勖溃?3中$R子形似“♀”,人??就用這???符?作??凵窈团...
@最早是表示“在每个里面”的意思,比如发票写作@25,表示在每本里面有25份。后来随着互联网的普及,它就成了电子邮件地址专用的间隔符号,至于它的读音嘛,有读“埃...
男女符号♂、♀的来历
第一种说法:因为爱神丘比特的弓箭袋状如“♂”,女神维纳爱美,常持小镜子形似“♀”,人们就用这两个符号作为爱神和女神的代号,后来它们就被分别...
答: 小包包场,四小时90(有会员卡)
答: 窗口工作的确有时让人很苦恼
社会上不讲道理的人也的确多
个人认为,情绪与工作是两码事
既然是垃圾人,何必为他们生气
我知道楼主有时不是生气,而是窝着火,还没地方...
答: 打麻将
餐饮业厨房产生的油烟,顾名思义,废气中主要污染物为油烟,一般采用静电除油。
液化气属较清洁能源,废气污染程度不高,主要含二氧化碳一氧化碳吧。
柴油属石油类,废气含二氧化硫和氮氧化物,二氧化硫碱液喷淋即可去除,氮氧化物主要以一氧化氮为主,要催化氧化成二氧化氮才能被碱吸收,造价成本非常高,一般的柴油发电机尾气难以治理,除非大型发电厂。
煤炭废气含二氧化硫多,一般常用的脱硫工艺即可。
这个问题有点不知所问了。
公务员并不由单位性质决定,行政单位行政编的是公务员,但并不是说行政单位的就是公务员,事业单位里面参照管理的也是公务员。
所以你的问题只能回答为:按公务员管理的是公务员。
如果是下拉的,只有党员而没有预备党员一项,可填党员,但如果是填写的,你就老老实实填预备党员,填成党员对你没什么好处,填预备党员也不会有什么吃亏。
1、问:房地产开发企业拆迁补偿费是否也随土地价格一起交纳契税(以房易房部分的)?
答:是的,因为取得土地的成交价格包括:地出让金、土地补偿费、安置补助费、地上附着物和青苗补偿费、拆迁补偿费、市政建设配套费等承受者应支付的货币、实物、无形资产及其它经济利益,而契税中未对房地产企业有相关的减免政策
2、问:如果交,是就补给拆迁户交差价部分交税还是就全部回迁房价格交税?在什么环节,时间交纳?
答:所谓使用回迁房作为拆迁补偿的形式,就是开发商以原地或异地的房屋抵顶拆迁补偿费的一种方法,相当于延期或分期支付拆迁补偿款,而契税条例中规定是:“纳税义务发生时间在纳税人签订土地、房屋权属移交合同的当天,或者纳税人取得其他具有土地、房屋权属转移合同性质凭证的当天。纳税人应在自纳税义务起10日内,向土地、房屋所在地的税收征收机关办理纳税申报,并在税务征收机关核定的期限内缴纳税款。 ”所以需要在取得土地的时候就要缴纳契税,需要全额计税,不能以补偿款计税。
3、问:土地使用税在什么环节交?如何交?税法说确有困难的可以减或缓,各地有具体政策吗?
答:如果原土地属于耕地的,自取得土地后满一年开始征收,如果属于非耕地的,自取得土地之下月征收。
以前的土地使用税一般都予以减免,特殊情况例外,虽然国家税务总局《关于土地使用税若干具体问题的补充规定》,对于基建项目在建期间使用的土地可以免税,但很多地方的税务机关都认为这不适用房地产企业,因为现在国家是控制房地产过热,不属于鼓励范围。
4、问:回迁部分房屋的营业税在什么环节交?
答:在交付回迁房屋或被拆迁户全部支付差价的时候缴纳,如果不需要支付差价的,以成本价格作为计税依据,如果有差价的,不需要支付部分按成本价格计税,差价部分按实际计税。
有以下两种:
“体位治疗”是指当患儿睡眠时,适当抬高其头部,并使头部保持侧位;“饮食治疗”的要点是少量多餐,可增加喂奶次数,但每次不可喂得过饱(人工喂养儿可在牛奶中加入米糊,使奶汁粘稠);“药物治疗”则以胃动力药物为主,需要在儿科医生指导下合理用药。
是应该的。
一些家长觉得尺度过大难以接受,告诉家长们,这套书的中文版是香港出版社翻译过来的,而且英文版确实是外国小朋友3-6岁的读物,很多外籍的明星表示他们小时候也看过类似的,并且外国的明星们表示也会给自己的宝宝看类似这种绘本的图书,有的绘本还会让宝宝动手操作等等。
 一个有经验的妈妈在喂奶时会不断刺激宝宝的吸吮,当感觉到宝宝停止吸吮了,就轻轻动一下乳头或转动一下奶嘴,宝宝又会继续吸吮了,必要时还可轻捏宝宝的耳廓或拍拍宝宝的脸颊、弹弹足底,给他一些觉醒刺激,延长兴奋时间,使宝宝吃够奶。只在宝宝吃饱后才让他好好睡一觉,培养宝宝养成良好的喂养习惯。
手足口病是一种发疹性传染病,主要是由柯萨奇病毒引起,尤其是3岁以下的孩子。病毒寄生在患儿的咽部、唾液、疱疹和粪便中,不仅可通过唾液、喷嚏、咳嗽,说话时的飞沫传染给别的孩子,还可通过手、生活用品及餐具等间接传染。
  孩子感染手足口病,手、足皮肤或口腔黏膜上会出现类似水痘样的小疱疹。重症患儿会出现肺水肿、脑炎等,大部分病例病情较轻,可治愈。少数患者可出现心肌炎、无菌性脑膜炎和肺水肿等并发症,严重时可危及生命。
有以下两种可能:
一是支气管哮喘前期,一是体质问题。体质问题造成痰鸣的宝宝,多是渗出体质,即虚胖、爱出汗、少活动、长湿疹、起风包、不爱吃菜和水果、爱吃甜食、水里不加奶就不喝、大便总是发稀、对牛奶和鸡蛋过敏、户外活动时间少、像温室里的幼苗等等。对于这样的宝宝,解决痰鸣的根本办法不是药物,而是多做户外活动,锻炼宝宝的耐寒能力,增加宝宝的运动量。如果痰鸣是支气管哮喘前期,就要在医生指导下给宝宝服用药物。
家庭影院是指投影机投影幕等组成的视频显示系统和音箱功放等组成的音频重放系统的设备组合,通常不涉及到室内建筑声学的问题。私人影院是指拥有家庭影院设备的基础上,有专门特定功能的房间来提供音乐、电影、电视欣赏等。并且要求房间体形合理,无声学缺陷,而且对混响时间、隔声、RASTI等有明确的要求。
我觉得广州正健贸易有限公司还不错,他们公司从众多的同类产品中精挑细选出一些技术先进,质量可靠,性价比高的仪器仪表推荐给用户.
我知道凯胜晟达厂家有出售铝矩形板,我看到很多客户都在这家买铝矩形板,具体价格我也不是很清楚,你去咨询一下,应该不贵。
可以去墨缘斋文化网看看,墨缘斋文化网纯手工字画值得推荐,那里有名家山人一村书法作品。
我上回在凯胜晟达厂家买的U型铝天花,价格不仅便宜,质量还很好,超级划算,厂家生产安装一条龙服务,服务到位,让我放心省心。
读yao,二声
很多人取名时说是缺“土”,所以用这个“??”当作名字的一个字,图作吉利!
桑坦输是冷,我也这样认为
应该是肾字,古代月指代肉,而这个字应该是月的本意,所以写成了肉字.
赡养老人是义务,不能总想着赡养自己的父母而不养对方的父母。在农村儿子儿媳管老人好像是天经地义的事,一般嫁出去的女儿就不赡养老人了。但是现在大家生活条件都还可以,不管是从道义上还是法律上说,赡养两边的老人都是应该的,夫妻要和善的沟通好,让对方从心里认知到。要不然如果你们只生了一女儿,那以后是不是你女儿就可以不管你们两老人了?
病情分析:
怀疑是龟头炎,龟头炎的情况可以局部定期用高锰酸钾清洗调理。
指导意见:
可以口服罗红霉素,同时配合高锰酸钾溶液清洗.建议经常清洗包皮和阴茎头,保持包皮腔内清洁和干燥。如有包皮过长或包茎时应行包皮环切术。以上用药必须去正规医院咨询专科医生经其同意后才可使用,不得擅自使用。
一些特殊功能需要用到这两个键:比如转移电话*57*号码,取消转移#57#,还有办理业务也需要,*返回,#确认号码等。
赑(音:毕 bi)
李东阳《怀麓堂集》中记载:“龙生九子不成龙,各有所好。囚牛,平生好音乐,今胡琴头上刻兽是其遗像;睚眦(音:牙字),平生好杀,今刀柄上龙吞口是其遗像;嘲凤,平生好险,今殿角走兽是其遗像;蒲牢,平生好鸣,今钟上兽钮是其遗像;狻猊(音:酸尼),平生好坐,今佛座狮子是其遗像;霸下,平生好负重,今碑座兽是其遗像;狴犴(音:毕案),平生好讼,今狱门上狮子头是其遗像;赑?粒ㄒ簦罕舷罚??缴?梦模?癖?脚晕牧?瞧湟畔瘢火肺牵?缴?猛蹋?竦罴故尥肥瞧湟畔瘛?
自动加速模式
目测是装饰的意思
正在加载...
Copyright &
Corporation, All Rights Reserved
确定举报此问题
举报原因(必选):
广告或垃圾信息
激进时政或意识形态话题
不雅词句或人身攻击
侵犯他人隐私
其它违法和不良信息
报告,这不是个问题
报告原因(必选):
这不是个问题
这个问题分类似乎错了
这个不是我熟悉的地区
相关问答:123456789101112131415拒绝访问 | www.wenzhangba.com | 百度云加速
请打开cookies.
此网站 (www.wenzhangba.com) 的管理员禁止了您的访问。原因是您的访问包含了非浏览器特征(d94376-ua98).
重新安装浏览器,或使用别的浏览器照明可长达200H小时,这个&H&是代表什么意思?_百度知道
照明可长达200H小时,这个&H&是代表什么意思?
我有更好的答案
这是某一个符号没有在网页中显示出来的乱码楼上正解
这是某一个符号没有在网页中显示出来的乱码
为您推荐:
其他类似问题
amp的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。订阅你的位置: >
> 【未解决】Python中安装mmseg时编译出错:LINK : error LNK2001: 无法解析的外部符号 initmmseg
【问题】想要在当前的:python 2.7.2win7 64位上安装mmseg:结果setup.py install时出现error: Unable to find vcvarsall.bat,已经解决了:但是编译过程中却又出现:E:\Dev_Tools\python\modules\mmseg\mmseg-1.3.0&SET VS90COMNTOOLS=%VS100COMNTOOLS%
E:\Dev_Tools\python\modules\mmseg\mmseg-1.3.0&setup.py install
running install
running bdist_egg
running egg_info
writing mmseg.egg-info\PKG-INFO
writing top-level names to mmseg.egg-info\top_level.txt
writing dependency_links to mmseg.egg-info\dependency_links.txt
reading manifest file 'mmseg.egg-info\SOURCES.txt'
writing manifest file 'mmseg.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
building 'mmseg' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\mmseg
creating build\temp.win-amd64-2.7\Release\mmseg\mmseg_cpp
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IE:\dev_in
stall_root\Python27\include -IE:\dev_install_root\Python27\PC /Tpmmseg/mmseg_cpp/algor.cpp /Fobuild\temp.win-amd64-2.7\R
elease\mmseg/mmseg_cpp/algor.obj -O3
cl: 命令行 warning D9002 :忽略未知选项“-O3”
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\word.h(31) : warning C4267: “=”: 从“size_t”转换到“int
”,可能丢失数据
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\word.h(38) : warning C4996: 'strncpy': This function or va
riable 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)\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(188) : 参见“strncpy”的声明
mmseg/mmseg_cpp/algor.cpp(210) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strnc
py_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(188) : 参见“strncpy”的声明
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\vector(537) : warning C4530: 使用了 C++ 异常处理程序,但
未启用展开语义。请指定 /EHsc
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\vector(533): 编译类 模板 成员函数“std::vector&_T
y&::vector(const std::vector&_Ty& &)”时
_Ty=rmmseg::Word *
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\utility(167): 参见对正在编译的类 模板 实例化“std
::vector&_Ty&”的引用
_Ty=rmmseg::Word *
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\utility(174): 参见对正在编译的类 模板 实例化“std
::_Pair_base&_Ty1,_Ty2&”的引用
_Ty2=std::vector&rmmseg::Word *&
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\algor.h(75): 参见对正在编译的类 模板 实例化“std::
pair&_Ty1,_Ty2&”的引用
_Ty2=std::vector&rmmseg::Word *&
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IE:\dev_in
stall_root\Python27\include -IE:\dev_install_root\Python27\PC /Tpmmseg/mmseg_cpp/dict.cpp /Fobuild\temp.win-amd64-2.7\Re
lease\mmseg/mmseg_cpp/dict.obj -O3
cl: 命令行 warning D9002 :忽略未知选项“-O3”
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\word.h(31) : warning C4267: “=”: 从“size_t”转换到“int
”,可能丢失数据
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\word.h(38) : warning C4996: 'strncpy': This function or va
riable 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)\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(188) : 参见“strncpy”的声明
mmseg/mmseg_cpp/dict.cpp(73) : warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
mmseg/mmseg_cpp/dict.cpp(178) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(234) : 参见“fopen”的声明
mmseg/mmseg_cpp/dict.cpp(205) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(234) : 参见“fopen”的声明
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IE:\dev_in
stall_root\Python27\include -IE:\dev_install_root\Python27\PC /Tpmmseg/mmseg_cpp/memory.cpp /Fobuild\temp.win-amd64-2.7\
Release\mmseg/mmseg_cpp/memory.obj -O3
cl: 命令行 warning D9002 :忽略未知选项“-O3”
memory.cpp
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IE:\dev_in
stall_root\Python27\include -IE:\dev_install_root\Python27\PC /Tpmmseg/mmseg_cpp/mmseg.cpp /Fobuild\temp.win-amd64-2.7\R
elease\mmseg/mmseg_cpp/mmseg.obj -O3
cl: 命令行 warning D9002 :忽略未知选项“-O3”
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\word.h(31) : warning C4267: “=”: 从“size_t”转换到“int
”,可能丢失数据
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\word.h(38) : warning C4996: 'strncpy': This function or va
riable 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)\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(188) : 参见“strncpy”的声明
mmseg/mmseg_cpp/mmseg.cpp(61) : warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据
mmseg/mmseg_cpp/mmseg.cpp(90) : warning C4244: “=”: 从“__int64”转换到“int”,可能丢失数据
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:E:\dev_i
nstall_root\Python27\libs /LIBPATH:E:\dev_install_root\Python27\PCbuild\amd64 /EXPORT:initmmseg build\temp.win-amd64-2.7
\Release\mmseg/mmseg_cpp/algor.obj build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp/dict.obj build\temp.win-amd64-2.7\Re
lease\mmseg/mmseg_cpp/memory.obj build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp/mmseg.obj /OUT:build\lib.win-amd64-2.7
\mmseg.pyd /IMPLIB:build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Rel
ease\mmseg/mmseg_cpp\mmseg.pyd.manifest
LINK : error LNK2001: 无法解析的外部符号 initmmseg
build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.lib : fatal error LNK1120: 1 个无法解析的外部命令
error: command '&c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.exe&' failed with exit status 112
E:\Dev_Tools\python\modules\mmseg\mmseg-1.3.0&即,最后出现:LINK : error LNK2001: 无法解析的外部符号 initmmseg【解决过程】1.对应的部分是:调用c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.exe时,传递的参数中包含的:/EXPORT:initmmseg此处很明显,找不到函数initmmseg,所以无法无法继续链接。2.后来搜python initmmseg而找到其中也和我遇到同样问题:Building on ('Windows', 'apy-win64', '2003Server', '5.2.3790', 'AMD64', 'EM64T Family 6 Model 30 Stepping 5, GenuineIntel') with Python-2.6.4 (r264:75706, Nov
3 :08) [MSC v.1500 64 bit (AMD64)] at
23:41:11.822000 (utc)
Extracting REMOTE-LOC\languages\pypm\infinitude.be\data\m\mm\mmseg\mmseg-1.2.2.tar.gz
******** Running build command *******
C:\ActivePython64Python26\Python.exe setup.py install --no-compile --root=_pypm_install_root
[SetupPyBuildFailed] non-zero returncode: 1
command: C:\ActivePython64Python26\Python.exe setup.py install --no-compile --root=_pypm_install_root
pwd: c:\docume~1\apy\locals~1\temp\tmplpxbp0\mmseg-1.2.2
running install
running build
running build_py。。。。C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Python26\libs /LIBPATH:C:\Python26\PCbuild\amd64 /EXPORT:initmmseg build\temp.win-amd64-2.6\Release\mmseg/mmseg_cpp/algor.obj build\temp.win-amd64-2.6\Release\mmseg/mmseg_cpp/dict.obj build\temp.win-amd64-2.6\Release\mmseg/mmseg_cpp/memory.obj build\temp.win-amd64-2.6\Release\mmseg/mmseg_cpp/mmseg.obj /OUT:build\lib.win-amd64-2.6\mmseg.pyd /IMPLIB:build\temp.win-amd64-2.6\Release\mmseg/mmseg_cpp\mmseg.lib /MANIFESTFILE:build\temp.win-amd64-2.6\Release\mmseg/mmseg_cpp\mmseg.pyd.manifest
LINK : error LNK2001: unresolved external symbol initmmseg3.突然想到,会不会是版本的问题。所以,去换个版本试试。从下载得到mmseg-1.2.4.tar.gz,解压,打开cmd切换到对应目录,运行SET VS90COMNTOOLS=%VS100COMNTOOLS%setup.py install结果错误依旧,还是:build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.lib : fatal error LNK1120: 1 个无法解析的外部命令4.后来在参考:中的:@Gili: It looks like this problem is due to spaces in the variable, try wrapping it within quotes. For me %VS100COMNTOOLS%=&C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools& –
结果自己去我的目录:C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools中看了看,无意间发现了其下有:vsvars32.bat打开看了看,内容大概是:@echo Setting environment for using Microsoft Visual Studio 2010 x86 tools.
@call :GetVSCommonToolsDir
@if &%VS100COMNTOOLS%&==&& goto error_no_VS100COMNTOOLSDIR
@call &%VS100COMNTOOLS%VCVarsQueryRegistry.bat& 32bit No64bit
:error_no_Framework35Version
@echo ERROR: Cannot determine the .NET Framework 3.5 version.
:end而且,也去看了看VS100COMNTOOLS环境变量,其内容也本身就是:C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\5.至此,貌似环境变量方面都是正常的。再去随便折腾一下,把:C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat拷贝出来一份,重命名为C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vcvarsall.bat然后再执行:SET VS90COMNTOOLS=%VS100COMNTOOLS%和setup.py install看看结果,结果竟然真的可以了:E:\Dev_Tools\python\modules\mmseg\mmseg-1.2.4&SET VS90COMNTOOLS=%VS100COMNTOOLS%
E:\Dev_Tools\python\modules\mmseg\mmseg-1.2.4&setup.py install
running install
running bdist_egg
running egg_info
writing mmseg.egg-info\PKG-INFO
writing top-level names to mmseg.egg-info\top_level.txt
writing dependency_links to mmseg.egg-info\dependency_links.txt
reading manifest file 'mmseg.egg-info\SOURCES.txt'
writing manifest file 'mmseg.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\mmseg
creating build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\chars.dic -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\test.py -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\words.dic -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\__init__.py -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\search.py -& build\bdist.win-amd64\egg\mmseg
copying build\lib.win-amd64-2.7\mmseg\word2.py -& build\bdist.win-amd64\egg\mmseg
copying build\lib.win-amd64-2.7\mmseg\_mmseg.py -& build\bdist.win-amd64\egg\mmseg
copying build\lib.win-amd64-2.7\mmseg\__init__.py -& build\bdist.win-amd64\egg\mmseg
copying build\lib.win-amd64-2.7\mmseg.pyd -& build\bdist.win-amd64\egg
byte-compiling build\bdist.win-amd64\egg\mmseg\data\test.py to test.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\data\__init__.py to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\search.py to search.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\word2.py to word2.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\_mmseg.py to _mmseg.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\__init__.py to __init__.pyc
creating stub loader for mmseg.pyd
byte-compiling build\bdist.win-amd64\egg\mmseg.py to mmseg.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying mmseg.egg-info\PKG-INFO -& build\bdist.win-amd64\egg\EGG-INFO
copying mmseg.egg-info\SOURCES.txt -& build\bdist.win-amd64\egg\EGG-INFO
copying mmseg.egg-info\dependency_links.txt -& build\bdist.win-amd64\egg\EGG-INFO
copying mmseg.egg-info\top_level.txt -& build\bdist.win-amd64\egg\EGG-INFO
writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt
zip_ analyzing archive contents...
mmseg._mmseg: module references __file__
creating dist
creating 'dist\mmseg-1.2.4-py2.7-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing mmseg-1.2.4-py2.7-win-amd64.egg
creating e:\dev_install_root\python27\lib\site-packages\mmseg-1.2.4-py2.7-win-amd64.egg
Extracting mmseg-1.2.4-py2.7-win-amd64.egg to e:\dev_install_root\python27\lib\site-packages
Adding mmseg 1.2.4 to easy-install.pth file
Installed e:\dev_install_root\python27\lib\site-packages\mmseg-1.2.4-py2.7-win-amd64.egg
Processing dependencies for mmseg==1.2.4
Finished processing dependencies for mmseg==1.2.4
E:\Dev_Tools\python\modules\mmseg\mmseg-1.2.4&6.再去试试1.3.0的版本,是否也可以正常安装。结果也是可以的:E:\Dev_Tools\python\modules\mmseg\mmseg-1.3.0&SET VS90COMNTOOLS=%VS100COMNTOOLS%
E:\Dev_Tools\python\modules\mmseg\mmseg-1.3.0&setup.py install
running install
running bdist_egg
running egg_info
writing mmseg.egg-info\PKG-INFO
writing top-level names to mmseg.egg-info\top_level.txt
writing dependency_links to mmseg.egg-info\dependency_links.txt
reading manifest file 'mmseg.egg-info\SOURCES.txt'
writing manifest file 'mmseg.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\mmseg
creating build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\chars.dic -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\test.py -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\word2_gen.py -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\words.dic -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\word_in_word_rm.py -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\__init__.py -& build\bdist.win-amd64\egg\mmseg\data
creating build\bdist.win-amd64\egg\mmseg\mmseg_cpp
copying build\lib.win-amd64-2.7\mmseg\mmseg_cpp\__init__.py -& build\bdist.win-amd64\egg\mmseg\mmseg_cpp
copying build\lib.win-amd64-2.7\mmseg\search.py -& build\bdist.win-amd64\egg\mmseg
copying build\lib.win-amd64-2.7\mmseg\word2.py -& build\bdist.win-amd64\egg\mmseg
copying build\lib.win-amd64-2.7\mmseg\_mmseg.py -& build\bdist.win-amd64\egg\mmseg
copying build\lib.win-amd64-2.7\mmseg\__init__.py -& build\bdist.win-amd64\egg\mmseg
copying build\lib.win-amd64-2.7\mmseg.pyd -& build\bdist.win-amd64\egg
byte-compiling build\bdist.win-amd64\egg\mmseg\data\test.py to test.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\data\word2_gen.py to word2_gen.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\data\word_in_word_rm.py to word_in_word_rm.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\data\__init__.py to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\mmseg_cpp\__init__.py to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\search.py to search.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\word2.py to word2.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\_mmseg.py to _mmseg.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\__init__.py to __init__.pyc
creating stub loader for mmseg.pyd
byte-compiling build\bdist.win-amd64\egg\mmseg.py to mmseg.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying mmseg.egg-info\PKG-INFO -& build\bdist.win-amd64\egg\EGG-INFO
copying mmseg.egg-info\SOURCES.txt -& build\bdist.win-amd64\egg\EGG-INFO
copying mmseg.egg-info\dependency_links.txt -& build\bdist.win-amd64\egg\EGG-INFO
copying mmseg.egg-info\top_level.txt -& build\bdist.win-amd64\egg\EGG-INFO
writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt
zip_ analyzing archive contents...
mmseg._mmseg: module references __file__
mmseg.data.word2_gen: module references __file__
mmseg.data.word_in_word_rm: module references __file__
creating dist
creating 'dist\mmseg-1.3.0-py2.7-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing mmseg-1.3.0-py2.7-win-amd64.egg
creating e:\dev_install_root\python27\lib\site-packages\mmseg-1.3.0-py2.7-win-amd64.egg
Extracting mmseg-1.3.0-py2.7-win-amd64.egg to e:\dev_install_root\python27\lib\site-packages
Removing mmseg 1.2.4 from easy-install.pth file
Adding mmseg 1.3.0 to easy-install.pth file
Installed e:\dev_install_root\python27\lib\site-packages\mmseg-1.3.0-py2.7-win-amd64.egg
Processing dependencies for mmseg==1.3.0
Finished processing dependencies for mmseg==1.3.0并且可以看到,上面先是Removing mmseg 1.2.4 from easy-install.pth file再去Adding mmseg 1.3.0 to easy-install.pth file是可以自动升级的。7.本以为都正常了,结果,实际上并没有。因为去运行代码时,又出现WindowsError: [Error 126]的错误了,详见:8.所以,还是先要解决此处的链接问题,才能解决后面的代码运行dll导入出错的问题。9.对于此处的initmmseg,网站能找到的,基本上就唯一一个:不过后来真的找到了相关的:中有initmmseg函数的:PyMODINIT_FUNC
initmmseg(void)
PyObject *m;
m = Py_InitModule(&mmseg&, Methods);
if (m == NULL)
Error = PyErr_NewException(&mmseg.error&, NULL, NULL);
Py_INCREF(Error);
PyModule_AddObject(m, &error&, Error);
}所以,很明显,此处,是有此initmmseg函数的,只是之前编译或链接时,没能很好的整合而导致后面链接时找不到此initmmseg函数。10.后来也查到了微软的 /EXPORT 的语法:所以,此处很明显,就是,在link的时候,会导出initmmseg,但是,在对应的E:\Dev_Tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\mmseg.cpp中,也没有找到initmmseg函数,导致刚才网上搜到的那里:里面有initmmseg函数。但是,网上的这个mmseg.cpp比本地的mmseg-1.3.0中的内容少多了。11.从下载到:python-mmseg-master.zip解压后,打开cmd,进入目录,去安装,结果又是其他错误:E:\Dev_Tools\python\modules\mmseg\python-mmseg-master&SET VS90COMNTOOLS=%VS100COMNTOOLS%
E:\Dev_Tools\python\modules\mmseg\python-mmseg-master&setup.py install
running install
running build
running build_ext
building 'mmseg' extension
creating build
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I/opt/loca
l/include/mmseg -IE:\dev_install_root\Python27\include -IE:\dev_install_root\Python27\PC /Tpmmseg.cpp /Fobuild\temp.win-
amd64-2.7\Release\mmseg.obj
mmseg.cpp : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: 使用了 C++ 异常处理程序,但
未启用展开语义。请指定 /EHsc
mmseg.cpp(4) : fatal error C1083: 无法打开包括文件:“SegmenterManager.h”: No such file or directory
error: command '&c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe&' failed with exit status 2
E:\Dev_Tools\python\modules\mmseg\python-mmseg-master&12.此处一直想要找到,到底是哪里去设置了参数,去添加了link的参数:/EXPORT:initmmseg的,但是一直都没找到。唯一能看到的是,关于E:\Dev_Tools\python\modules\mmseg\mmseg-1.3.0\setup.py中有对应的文件依赖的说明:ext_modules=[
Extension(
mmseg/mmseg_cpp/algor.cpp
mmseg/mmseg_cpp/dict.cpp
mmseg/mmseg_cpp/memory.cpp
mmseg/mmseg_cpp/mmseg.cpp
&&&.split(),
extra_compile_args=['-O3'],
depends=&&&
mmseg/mmseg_cpp/algor.h
mmseg/mmseg_cpp/dict.h
mmseg/mmseg_cpp/rules.h
mmseg/mmseg_cpp/word.h
mmseg/mmseg_cpp/chunk.h
mmseg/mmseg_cpp/memory.h
mmseg/mmseg_cpp/token.h
&&&.split(),
],13.实在逼急了,自己手动去:E:\Dev_Tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\mmseg.cpp中添加了一个initmmseg的空函数:
void initmmseg(void)
}再去重新编译试试,看看效果。结果导致其他错误了:c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:E:\dev_i
nstall_root\Python27\libs /LIBPATH:E:\dev_install_root\Python27\PCbuild\amd64 /EXPORT:initmmseg build\temp.win-amd64-2.7
\Release\mmseg/mmseg_cpp/algor.obj build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp/dict.obj build\temp.win-amd64-2.7\Re
lease\mmseg/mmseg_cpp/memory.obj build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp/mmseg.obj /OUT:build\lib.win-amd64-2.7
\mmseg.pyd /IMPLIB:build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Rel
ease\mmseg/mmseg_cpp\mmseg.pyd.manifest
mmseg.obj : warning LNK4197: 多次指定导出“initmmseg”;使用第一个规范
正在创建库 build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.lib 和对象 build\temp.win-amd64-2.7\Release\mmseg/m
mseg_cpp\mmseg.exp
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\mt.exe -nologo -manifest build\temp.win-amd64-2.7\Release\mm
seg/mmseg_cpp\mmseg.pyd.manifest -outputresource:build\lib.win-amd64-2.7\mmseg.2
build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.pyd.manifest : general error c1010070: Failed to load and parse t
0vnifest. {_~
error: command 'mt.exe' failed with exit status 3114.之前就猜测,不会是,setup.py的编译过程自己给某个模块添加了initxxx吧即此处的给mmseg添加了initmmseg。后来搜了下,参考:果然提到这个问题了。所以,还是去掉手动添加的那个initmmseg。参考上面中提到的:找到相关的解释了:2.3.5. Other optionsThere are still some other options which can be used to handle special cases.The extra_objects option is a list of object files to be passed to the linker. These files must not have extensions, as the default extension for the compiler is used.extra_compile_args and extra_link_args can be used to specify additional command line options for the respective compiler and linker command lines.export_symbols is only useful on Windows. It can contain a list of symbols (functions or variables) to be exported. This option is not needed when building compiled extensions: Distutils will automatically add initmodule to the list of exported symbols.The depends option is a list of files that the extension depends on (for example header files). The build command will call the compiler on the sources to rebuild extension if any on this files has been modified since the previous build.15.后来找到这里:其也是遇到同样问题:在linux下编译是OK的,但是windows下编译,生生的多出一个:LINK : error LNK2001: unresolved external symbol inittest也是由于distutils会去编译,会自动给“export_symbols ”添加上一个initXXX的函数。导致出错。16.另外看到:其中提到了msvccompiler.py,找了下,在这里:E:\dev_install_root\Python27\Lib\distutils有两个:msvccompiler.pymsvc9compiler.py看了看E:\dev_install_root\Python27\Lib\distutils\msvc9compiler.py貌似也是上述提交的更新,修改后的版本。17.手动去把E:\dev_install_root\Python27\Lib\distutils\msvc9compiler.py中把对应两行干掉:
# for sym in (export_symbols or []):
# export_opts.append(&/EXPORT:& + sym)然后再去编译试试,即取消EXPORT试试,结果还是之前见过的,另外一个问题:c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:E:\dev_i
nstall_root\Python27\libs /LIBPATH:E:\dev_install_root\Python27\PCbuild\amd64 build\temp.win-amd64-2.7\Release\mmseg/mms
eg_cpp/algor.obj build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp/dict.obj build\temp.win-amd64-2.7\Release\mmseg/mmseg_
cpp/memory.obj build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp/mmseg.obj /OUT:build\lib.win-amd64-2.7\mmseg.pyd /IMPLIB
:build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Release\mmseg/mmseg_c
pp\mmseg.pyd.manifest
正在创建库 build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.lib 和对象 build\temp.win-amd64-2.7\Release\mmseg/m
mseg_cpp\mmseg.exp
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\mt.exe -nologo -manifest build\temp.win-amd64-2.7\Release\mm
seg/mmseg_cpp\mmseg.pyd.manifest -outputresource:build\lib.win-amd64-2.7\mmseg.2
build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.pyd.manifest : general error c1010070: Failed to load and parse t
0vnifest. {_~
error: command 'mt.exe' failed with exit status 31所以,还是还原msvc9compiler.py回来吧。18.后来终于看懂:中的意思了,这人肯定是把Extention中的xxx.modulename写成:xxx/modulename了,改为xxx.modulename其中xxx是package即可。但是我此处,不是我写的模块,是别人写的,而且好像也没用到package,所以对于此处问题,还是没有帮助,没法解决。19.后来又找到一个同样的问题的:但是没有人回答正确。。20.又找到一个:结果也没有有效的回答。。。21.手动修改:E:\Dev_Tools\python\modules\mmseg\mmseg-1.3.0\setup.py自己添加上:export_symbols变成:ext_modules=[
Extension(
mmseg/mmseg_cpp/algor.cpp
mmseg/mmseg_cpp/dict.cpp
mmseg/mmseg_cpp/memory.cpp
mmseg/mmseg_cpp/mmseg.cpp
&&&.split(),
extra_compile_args=['-O3'],
depends=&&&
mmseg/mmseg_cpp/algor.h
mmseg/mmseg_cpp/dict.h
mmseg/mmseg_cpp/rules.h
mmseg/mmseg_cpp/word.h
mmseg/mmseg_cpp/chunk.h
mmseg/mmseg_cpp/memory.h
mmseg/mmseg_cpp/token.h
&&&.split(),
export_symbols=[],
],结果问题依旧。22.参考了:再去把:E:\dev_install_root\Python27\Lib\distutils\msvc9compiler.py中把export干掉,然后结果是这个:c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:E:\dev_i
nstall_root\Python27\libs /LIBPATH:E:\dev_install_root\Python27\PCbuild\amd64 build\temp.win-amd64-2.7\Release\mmseg/mms
eg_cpp/algor.obj build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp/dict.obj build\temp.win-amd64-2.7\Release\mmseg/mmseg_
cpp/memory.obj build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp/mmseg.obj /OUT:build\lib.win-amd64-2.7\mmseg.pyd /IMPLIB
:build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Release\mmseg/mmseg_c
pp\mmseg.pyd.manifest
正在创建库 build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.lib 和对象 build\temp.win-amd64-2.7\Release\mmseg/m
mseg_cpp\mmseg.exp
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\mt.exe -nologo -manifest build\temp.win-amd64-2.7\Release\mm
seg/mmseg_cpp\mmseg.pyd.manifest -outputresource:build\lib.win-amd64-2.7\mmseg.2
build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.pyd.manifest : general error c1010070: Failed to load and parse t
0vnifest. {_~
error: command 'mt.exe' failed with exit status 31然后再去E:\dev_install_root\Python27\Lib\distutils\msvc9compiler.py中找到:            ld_args.append(‘/MANIFESTFILE:’ + temp_manifest)再前后再加一句,变成:
ld_args.append('/MANIFESTFILE:' + temp_manifest)
ld_args.append('/MANIFEST')然后再去编译,最终终于正常编译了:E:\Dev_Tools\python\modules\mmseg\mmseg-1.3.0&SET VS90COMNTOOLS=%VS100COMNTOOLS%
E:\Dev_Tools\python\modules\mmseg\mmseg-1.3.0&setup.py install
running install
running bdist_egg
running egg_info
writing mmseg.egg-info\PKG-INFO
writing top-level names to mmseg.egg-info\top_level.txt
writing dependency_links to mmseg.egg-info\dependency_links.txt
reading manifest file 'mmseg.egg-info\SOURCES.txt'
writing manifest file 'mmseg.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\mmseg
copying mmseg\search.py -& build\lib.win-amd64-2.7\mmseg
copying mmseg\word2.py -& build\lib.win-amd64-2.7\mmseg
copying mmseg\_mmseg.py -& build\lib.win-amd64-2.7\mmseg
copying mmseg\__init__.py -& build\lib.win-amd64-2.7\mmseg
creating build\lib.win-amd64-2.7\mmseg\data
copying mmseg\data\test.py -& build\lib.win-amd64-2.7\mmseg\data
copying mmseg\data\word2_gen.py -& build\lib.win-amd64-2.7\mmseg\data
copying mmseg\data\word_in_word_rm.py -& build\lib.win-amd64-2.7\mmseg\data
copying mmseg\data\__init__.py -& build\lib.win-amd64-2.7\mmseg\data
creating build\lib.win-amd64-2.7\mmseg\mmseg_cpp
copying mmseg\mmseg_cpp\__init__.py -& build\lib.win-amd64-2.7\mmseg\mmseg_cpp
copying mmseg\data\chars.dic -& build\lib.win-amd64-2.7\mmseg\data
copying mmseg\data\words.dic -& build\lib.win-amd64-2.7\mmseg\data
running build_ext
building 'mmseg' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\mmseg
creating build\temp.win-amd64-2.7\Release\mmseg\mmseg_cpp
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IE:\dev_in
stall_root\Python27\include -IE:\dev_install_root\Python27\PC /Tpmmseg/mmseg_cpp/algor.cpp /Fobuild\temp.win-amd64-2.7\R
elease\mmseg/mmseg_cpp/algor.obj -O3
cl: 命令行 warning D9002 :忽略未知选项“-O3”
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\word.h(31) : warning C4267: “=”: 从“size_t”转换到“int
”,可能丢失数据
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\word.h(38) : warning C4996: 'strncpy': This function or va
riable 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)\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(188) : 参见“strncpy”的声明
mmseg/mmseg_cpp/algor.cpp(210) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strnc
py_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(188) : 参见“strncpy”的声明
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\vector(537) : warning C4530: 使用了 C++ 异常处理程序,但
未启用展开语义。请指定 /EHsc
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\vector(533): 编译类 模板 成员函数“std::vector&_T
y&::vector(const std::vector&_Ty& &)”时
_Ty=rmmseg::Word *
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\utility(167): 参见对正在编译的类 模板 实例化“std
::vector&_Ty&”的引用
_Ty=rmmseg::Word *
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\utility(174): 参见对正在编译的类 模板 实例化“std
::_Pair_base&_Ty1,_Ty2&”的引用
_Ty2=std::vector&rmmseg::Word *&
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\algor.h(75): 参见对正在编译的类 模板 实例化“std::
pair&_Ty1,_Ty2&”的引用
_Ty2=std::vector&rmmseg::Word *&
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IE:\dev_in
stall_root\Python27\include -IE:\dev_install_root\Python27\PC /Tpmmseg/mmseg_cpp/dict.cpp /Fobuild\temp.win-amd64-2.7\Re
lease\mmseg/mmseg_cpp/dict.obj -O3
cl: 命令行 warning D9002 :忽略未知选项“-O3”
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\word.h(31) : warning C4267: “=”: 从“size_t”转换到“int
”,可能丢失数据
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\word.h(38) : warning C4996: 'strncpy': This function or va
riable 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)\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(188) : 参见“strncpy”的声明
mmseg/mmseg_cpp/dict.cpp(73) : warning C4267: “初始化”: 从“size_t”转换到“int”,可能丢失数据
mmseg/mmseg_cpp/dict.cpp(178) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(234) : 参见“fopen”的声明
mmseg/mmseg_cpp/dict.cpp(205) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(234) : 参见“fopen”的声明
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IE:\dev_in
stall_root\Python27\include -IE:\dev_install_root\Python27\PC /Tpmmseg/mmseg_cpp/memory.cpp /Fobuild\temp.win-amd64-2.7\
Release\mmseg/mmseg_cpp/memory.obj -O3
cl: 命令行 warning D9002 :忽略未知选项“-O3”
memory.cpp
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IE:\dev_in
stall_root\Python27\include -IE:\dev_install_root\Python27\PC /Tpmmseg/mmseg_cpp/mmseg.cpp /Fobuild\temp.win-amd64-2.7\R
elease\mmseg/mmseg_cpp/mmseg.obj -O3
cl: 命令行 warning D9002 :忽略未知选项“-O3”
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\word.h(31) : warning C4267: “=”: 从“size_t”转换到“int
”,可能丢失数据
e:\dev_tools\python\modules\mmseg\mmseg-1.3.0\mmseg\mmseg_cpp\word.h(38) : warning C4996: 'strncpy': This function or va
riable 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)\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(188) : 参见“strncpy”的声明
mmseg/mmseg_cpp/mmseg.cpp(61) : warning C4267: “参数”: 从“size_t”转换到“int”,可能丢失数据
mmseg/mmseg_cpp/mmseg.cpp(90) : warning C4244: “=”: 从“__int64”转换到“int”,可能丢失数据
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:E:\dev_i
nstall_root\Python27\libs /LIBPATH:E:\dev_install_root\Python27\PCbuild\amd64 build\temp.win-amd64-2.7\Release\mmseg/mms
eg_cpp/algor.obj build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp/dict.obj build\temp.win-amd64-2.7\Release\mmseg/mmseg_
cpp/memory.obj build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp/mmseg.obj /OUT:build\lib.win-amd64-2.7\mmseg.pyd /IMPLIB
:build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Release\mmseg/mmseg_c
pp\mmseg.pyd.manifest /MANIFEST
正在创建库 build\temp.win-amd64-2.7\Release\mmseg/mmseg_cpp\mmseg.lib 和对象 build\temp.win-amd64-2.7\Release\mmseg/m
mseg_cpp\mmseg.exp
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\mt.exe -nologo -manifest build\temp.win-amd64-2.7\Release\mm
seg/mmseg_cpp\mmseg.pyd.manifest -outputresource:build\lib.win-amd64-2.7\mmseg.2
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\mmseg
creating build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\chars.dic -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\test.py -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\word2_gen.py -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\words.dic -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\word_in_word_rm.py -& build\bdist.win-amd64\egg\mmseg\data
copying build\lib.win-amd64-2.7\mmseg\data\__init__.py -& build\bdist.win-amd64\egg\mmseg\data
creating build\bdist.win-amd64\egg\mmseg\mmseg_cpp
copying build\lib.win-amd64-2.7\mmseg\mmseg_cpp\__init__.py -& build\bdist.win-amd64\egg\mmseg\mmseg_cpp
copying build\lib.win-amd64-2.7\mmseg\search.py -& build\bdist.win-amd64\egg\mmseg
copying build\lib.win-amd64-2.7\mmseg\word2.py -& build\bdist.win-amd64\egg\mmseg
copying build\lib.win-amd64-2.7\mmseg\_mmseg.py -& build\bdist.win-amd64\egg\mmseg
copying build\lib.win-amd64-2.7\mmseg\__init__.py -& build\bdist.win-amd64\egg\mmseg
copying build\lib.win-amd64-2.7\mmseg.pyd -& build\bdist.win-amd64\egg
byte-compiling build\bdist.win-amd64\egg\mmseg\data\test.py to test.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\data\word2_gen.py to word2_gen.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\data\word_in_word_rm.py to word_in_word_rm.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\data\__init__.py to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\mmseg_cpp\__init__.py to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\search.py to search.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\word2.py to word2.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\_mmseg.py to _mmseg.pyc
byte-compiling build\bdist.win-amd64\egg\mmseg\__init__.py to __init__.pyc
creating stub loader for mmseg.pyd
byte-compiling build\bdist.win-amd64\egg\mmseg.py to mmseg.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying mmseg.egg-info\PKG-INFO -& build\bdist.win-amd64\egg\EGG-INFO
copying mmseg.egg-info\SOURCES.txt -& build\bdist.win-amd64\egg\EGG-INFO
copying mmseg.egg-info\dependency_links.txt -& build\bdist.win-amd64\egg\EGG-INFO
copying mmseg.egg-info\top_level.txt -& build\bdist.win-amd64\egg\EGG-INFO
writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt
zip_ analyzing archive contents...
mmseg._mmseg: module references __file__
mmseg.data.word2_gen: module references __file__
mmseg.data.word_in_word_rm: module references __file__
creating dist
creating 'dist\mmseg-1.3.0-py2.7-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing mmseg-1.3.0-py2.7-win-amd64.egg
removing 'e:\dev_install_root\python27\lib\site-packages\mmseg-1.3.0-py2.7-win-amd64.egg' (and everything under it)
creating e:\dev_install_root\python27\lib\site-packages\mmseg-1.3.0-py2.7-win-amd64.egg
Extracting mmseg-1.3.0-py2.7-win-amd64.egg to e:\dev_install_root\python27\lib\site-packages
mmseg 1.3.0 is already the active version in easy-install.pth
Installed e:\dev_install_root\python27\lib\site-packages\mmseg-1.3.0-py2.7-win-amd64.egg
Processing dependencies for mmseg==1.3.0
Finished processing dependencies for mmseg==1.3.0
E:\Dev_Tools\python\modules\mmseg\mmseg-1.3.0&23.不过,白高兴一场,因为最后,去测试mmseg,还是同样的错误:E:\Dev_Root\python\try_mmseg&try_mmseg.py
Traceback (most recent call last):
File &E:\Dev_Root\python\try_mmseg\try_mmseg.py&, line 13, in &module&
from mmseg import seg_
File &E:\dev_install_root\Python27\lib\site-packages\mmseg-1.3.0-py2.7-win-amd64.egg\mmseg\__init__
import _mmseg as mmseg
File &E:\dev_install_root\Python27\lib\site-packages\mmseg-1.3.0-py2.7-win-amd64.egg\mmseg\_mmseg.p
mmseg = cdll.LoadLibrary(mmseg_lib_path)
File &E:\dev_install_root\Python27\lib\ctypes\__init__.py&, line 431, in LoadLibrary
return self._dlltype(name)
File &E:\dev_install_root\Python27\lib\ctypes\__init__.py&, line 353, in __init__
self._handle = _dlopen(self._name, mode)即,根本还是无法正常生成动态链接库,无法使用。只不过,上述编译成lib,导致正常了。。。 【总结】经历千辛万苦,虽然编译成功了,但是结果还是没用的。因为还是无法正常使用代码。详见: 目前,已知的是:知道了此处的问题,就是由于EXPORT对应的initXXX函数,但是initXXX找不到而导致link时报错;此处对应的是中解释的:export_symbols is only useful on Windows. It can contain a list of symbols (functions or variables) to be exported. This option is not needed when building compiled extensions: Distutils will automatically add initmodule to the list of exported symbols.但是,除了手动去改动E:\dev_install_root\Python27\Lib\distutils\msvc9compiler.py把对应的添加EXPORT的代码干掉,其他还真不知道如何取消此export。但是归根结底,即使编译成功,但是还是无法正常使用此处的mmseg。。。转载请注明: & 与本文相关的文章
20 queries in 0.242 seconds, using 10.40MB memory}

我要回帖

更多关于 这个问题充钱 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信