You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

运行AptaNet的predictor.py时TensorFlow报SSE4.1指令不支持错误

问题描述

正在Python 3.8环境下测试Python程序AptaNet,程序共包含3个Python脚本:

  • target_encoding.py
  • feature_extraction.py
  • predictor.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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.29 10:03:20