直接运行pip install tensorflow安装成功之后,发现版本是tensorflow2.15.0
python的版本是3.9版本
导入包:import tensorflow
打包xxx.exe,调用之后提示错误
ModuleNotFoundError: No module named 'tensorflow'
最后发现特定的python的版本对应特定的tensorflow的版本,以下是官方的测试版本
官方:https://tensorflow.google.cn/install/source_windows?hl=zh-cn
经过测试的构建配置
windows:CPU

windows:GPU:
Linux:CPU
Linux:GPU

最后发现是导入的文件路劲不对:
问题出在这里,详细请参考我的博客:
https://blog.csdn.net/chehec2010/article/details/135143329
















![[SWPUCTF 2021 新生赛]gift_F12](https://img-blog.csdnimg.cn/direct/7bb46ed524a94528b3ccec70d2d1b531.png)


