使用如下命令安装TensorFlow:
pip3 install TensorFlow==2.10.1
测试:
python3 -c "import tensorflow "
输出如下信息:
This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object f