undefined symbol: PyThread_tss_get
时间: 2023-09-24 20:13:01 浏览: 264
tpm2-tss-master_tss2_tpm2_types.h_proudnrz_tpm_
在安装过程中,出现了一个错误undefined symbol: PyThread_tss_get [1。这个错误可能是由于编译命令缺少python的参数导致的。在编译命令中,需要加上-D build_python_api=ON和-D PYTHON_EXECUTABLE=/usr/local/python3.6/bin/python3.6这两个参数来指定基于python的动态库 [2。另外,还有一个报错是关于命令行选项“-fno-plt”无法识别的问题 [3。这个问题可能是由于编译命令中缺少了相关的依赖库或者编译选项错误导致的。你可以检查一下编译命令中的参数和依赖库是否正确,并根据错误提示进行相应的修复。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [寒武纪cnstream模型加速的python环境搭建笔记](https://blog.csdn.net/submarineas/article/details/124470740)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [makefile环境不匹配导致的编译错误g++: error: unrecognized command line option ‘-fno-plt](https://blog.csdn.net/zkp_987/article/details/108345887)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文