sms-tools的使用

先前只有python36的版本,在使用sms-tools的时候遇到了这样那样的问题,现统一记录一下:

运行环境说明

1. 需要c++编译器,为了避免安装vs,选择了vcforpython27

2. 为了使用vcforpython27,另外装了个python27,反正以后也会用得上

编译错误解决

1. Python error: Unable to find vcvarsall.bat

需要c++编译器,要么用visual studio 20xx,要么用vcforpython27,不要用mingw!!

2. error LNK1181: cannot open input file 'm.lib'  

这个在sms-tools的wiki里面有说到,需要remove libraries=['m'], from compileModule.py

详见https://stackoverflow.com/questions/33062972/problems-with-compiling-c-code-in-python/33063193#33063193

3. 运行py文件出现warning,cython modules were nor imported

这个错误好蠢,忘了从python36调回python27

猜你喜欢

转载自www.cnblogs.com/fanmu/p/9170329.html
今日推荐