RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
cython编译错误怎么解决

这篇文章主要讲解了“cython编译错误怎么解决”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“cython编译错误怎么解决”吧!

创新互联-专业网站定制、快速模板网站建设、高性价比开福网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式开福网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖开福地区。费用合理售后完善,十多年实体公司更值得信赖。

running build_ext
skipping ‘bbox.c’ Cython extension (up-to-date)
skipping ‘nms.c’ Cython extension (up-to-date)
building ‘cython_bbox’ extension
{‘gcc’: [’-Wno-cpp’, ‘-Wno-unused-function’]}
gcc -pthread -B /home/gsadhasivam/anaconda3/envs/r3det/compiler_compat -Wl,–sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/gsadhasivam/anaconda3/envs/r3det/lib/python3.7/site-packages/numpy/core/include -I/home/gsadhasivam/anaconda3/envs/r3det/include/python3.7m -c bbox.c -o build/temp.linux-x86_64-3.7/bbox.o -Wno-cpp -Wno-unused-function
bbox.c: In function ‘__Pyx__ExceptionSave’:
bbox.c:9439:19: error: ‘PyThreadState’ has no member named ‘exc_type’
*type = tstate->exc_type;
^
bbox.c:9440:20: error: ‘PyThreadState’ has no member named ‘exc_value’
*value = tstate->exc_value;
^
bbox.c:9441:17: error: ‘PyThreadState’ has no member named ‘exc_traceback’
*tb = tstate->exc_traceback;
^
bbox.c: In function ‘__Pyx__ExceptionReset’:
bbox.c:9448:22: error: ‘PyThreadState’ has no member named ‘exc_type’
tmp_type = tstate->exc_type;
^
bbox.c:9449:23: error: ‘PyThreadState’ has no member named ‘exc_value’
tmp_value = tstate->exc_value;
^
bbox.c:9450:20: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tmp_tb = tstate->exc_traceback;
^
bbox.c:9451:11: error: ‘PyThreadState’ has no member named ‘exc_type’
tstate->exc_type = type;
^
bbox.c:9452:11: error: ‘PyThreadState’ has no member named ‘exc_value’
tstate->exc_value = value;
^
bbox.c:9453:11: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tstate->exc_traceback = tb;
^
bbox.c: In function ‘__Pyx__GetException’:
bbox.c:9508:22: error: ‘PyThreadState’ has no member named ‘exc_type’
tmp_type = tstate->exc_type;
^
bbox.c:9509:23: error: ‘PyThreadState’ has no member named ‘exc_value’
tmp_value = tstate->exc_value;
^
bbox.c:9510:20: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tmp_tb = tstate->exc_traceback;
^
bbox.c:9511:11: error: ‘PyThreadState’ has no member named ‘exc_type’
tstate->exc_type = local_type;
^
bbox.c:9512:11: error: ‘PyThreadState’ has no member named ‘exc_value’
tstate->exc_value = local_value;
^
bbox.c:9513:11: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tstate->exc_traceback = local_tb;
^
error: command ‘gcc’ failed with exit status 1

首先,发现python是3.7,所以需要将python版本换为3.5即可。

感谢各位的阅读,以上就是“cython编译错误怎么解决”的内容了,经过本文的学习后,相信大家对cython编译错误怎么解决这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联,小编将为大家推送更多相关知识点的文章,欢迎关注!


新闻标题:cython编译错误怎么解决
网站链接:http://sczitong.cn/article/jiipsj.html