这篇文章主要讲解了“cython编译错误怎么解决”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“cython编译错误怎么解决”吧!
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编译错误怎么解决这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。