tensorflow安装 centos
- 作者: 雪红衣
- 来源: 51数据库
- 2020-09-28
Ubuntu安装tensorflow
先安装python-dev,再安装tensorflow就好了
$ sudo apt-get install python-dev
$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
tensorflow只有64位的,所以在anaconda 32的环境下不能安装,会报如下错误:
packagenotfounderror: package not found: '' package missing in current win-32 channels:
- tensorflow
解决办法:
1. go to anaconda, and download anaconda 64bit for windows
2. install anaconda 64bit in a new folder, as c:\users\yourname\appdata\local\continuum\anaconda2_64
3. come into 64bit anaconda prompt
4. create python 64bit environment:
`conda create -n py35 python=3.5`
5. 安装必要的package, `conda install numpy scipy pandas`
6. 安装tensorflow, `conda install -c conda-forge tensorflow=0.12.1`
现在我电脑已经成功安装好tensorflow了。
先安装python-dev,再安装tensorflow就好了
$ sudo apt-get install python-dev
$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
tensorflow只有64位的,所以在anaconda 32的环境下不能安装,会报如下错误:
packagenotfounderror: package not found: '' package missing in current win-32 channels:
- tensorflow
解决办法:
1. go to anaconda, and download anaconda 64bit for windows
2. install anaconda 64bit in a new folder, as c:\users\yourname\appdata\local\continuum\anaconda2_64
3. come into 64bit anaconda prompt
4. create python 64bit environment:
`conda create -n py35 python=3.5`
5. 安装必要的package, `conda install numpy scipy pandas`
6. 安装tensorflow, `conda install -c conda-forge tensorflow=0.12.1`
现在我电脑已经成功安装好tensorflow了。
推荐阅读
