【发布时间】:2017-10-07 15:42:50
【问题描述】:
我正在按照 Tensorflow 网站中提到的说明从源代码安装 tensorFlow。当我使用命令 sudo yum install python3-numpy python3-dev python3-pip python3-wheel 安装 TensorFlow Python 依赖项时,它给了我这个错误
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.ventraip.net.au
* epel: epel.mirror.digitalpacific.com.au
* extras: mirror.ventraip.net.au
* updates: mirror.intergrid.com.au
No package python3-numpy available.
No package python3-dev available.
No package python3-pip available.
No package python3-wheel available.
Error: Nothing to do
我使用命令python --version 检查了 python 版本,它显示 Python 3.6.1 :: Anaconda 4.4.0 (64-bit)`,我的操作系统是 CentOS Linux 7 (Core)。我是 Linux 和 Tensorflow 的新手。
谢谢
【问题讨论】:
-
是的,因为我使用的是 centOS 而不是 apt-get 我使用的是 yum
-
您可以使用 conda 安装 tensorflow。试试这个; conda install -c anaconda tensorflow-gpu(用于 GPU)或 conda install -c anaconda tensorflow(用于 CPU)
标签: python linux tensorflow tensorflow-gpu