Illegal instruction (core dumped) after running import tensorflow

后端 未结 6 730
南方客
南方客 2020-11-29 08:21

I created a fresh virtual environment: virtualenv -p python2 test_venv/ And installed tensorflow: pip install --upgrade --no-cache-dir tensorflow

6条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 08:40

    I would use older version. Looks like your CPU does not support AVX instructions.

    Quoting from their Release Page

    Breaking Changes
    Prebuilt binaries are now built against CUDA 9.0 and cuDNN 7.
    Prebuilt binaries will use AVX instructions. This may break TF on older CPUs.
    

    You have atleast two options:

    1. Use tensorflow 1.5 or older

    2. Build from source

    Regarding your concern for differences, you will miss out on new features, but most basic features and documentations are not that different.

提交回复
热议问题