运行AptaNet的predictor.py时TensorFlow报SSE4.1指令不支持错误
问题描述
正在Python 3.8环境下测试Python程序AptaNet,程序共包含3个Python脚本:
target_encoding.pyfeature_extraction.pypredictor.py
其中target_encoding.py、feature_extraction.py两个脚本运行正常,无需调整。
运行依赖TensorFlow的predictor.py脚本时触发报错,具体报错信息如下:
bcramer@qsar:~/workdir-aptanet$ python3 predictor.py > The TensorFlow library was compiled to use SSE4.1 instructions, but these aren't available on your machine. Aborted
测试排查说明
若使用TensorFlow v2.9版本环境协助定位、解决问题,测试前需额外安装repDNA依赖,安装命令如下:
pip install repDNA
测试注意事项:
- 解压AptaNet压缩包后,目录内包含上述3个Python脚本与
Dataset.csv文件 - 运行
predictor.py时需保证Dataset.csv文件位于当前工作目录下 - 无需测试
target_encoding.py和feature_extraction.py
当前环境配置
TensorFlow相关组件安装执行命令如下:
sudo apt update sudo apt install python3-dev python3-pip python3-venv pip install --upgrade pip pip install --upgrade tensorflow pip install --user tensorflow-gpu
运行设备为老旧PC,具体参数:
- 运行内存4GB
- 操作系统为Ubuntu 20.04
- 搭载1块全新Nvidia GT-710显卡
内容的提问来源于stack exchange,提问作者Bruno
相关产品推荐
相关产品推荐

