新聞中心
最近我開始學(xué)習(xí)深度學(xué)習(xí)框架Tensorflow,一開始在Windows平臺下的anaconda下安裝,由于anaconda安裝幾次后navigator打開老是出現(xiàn)閃退的問題,所以決定換個ubuntu下繼續(xù)折騰tensorflow。本人筆記本沒有NVIDIA顯卡,只裝的CPU版本的。而且是在虛擬機下的,下面開始吧。

讓客戶滿意是我們工作的目標(biāo),不斷超越客戶的期望值來自于我們對這個行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領(lǐng)域值得信任、有價值的長期合作伙伴,公司提供的服務(wù)項目有:空間域名、虛擬主機、營銷軟件、網(wǎng)站建設(shè)、納雍網(wǎng)站維護、網(wǎng)站推廣。
先安裝好Ubuntu 18.04版本的系統(tǒng)(最好是Ubuntu的14.04版本以上),Ubuntu系統(tǒng)已經(jīng)有了了python 3.7.7.7,所以不需要再安裝Python了。
一、首先更新源為阿里云軟件源,增加下載速度
(1)備份當(dāng)前也就是默認官方的源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
(2)刪除sources.list文件中的列表,刪除全部內(nèi)容
sudo gedit /etc/apt/sources.list1
(3)替換內(nèi)容后,保存
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
4)更新源列表
sudo apt-get update
二、安裝Tensorflow(Python3.6.7/CPU)
(1)安裝Python3的包管理pip
sudo apt-get install python3-pip python3-dev
(2)安裝tensorflow
(自動安裝相關(guān)庫numpy、tensorboard、six、protobuf、html5lib、bleach、werkzeug、markdown)
(3)測試tensorflow
當(dāng)前標(biāo)題:Ubuntu18.04安裝Tensorflow(CPU)
文章分享:http://m.fisionsoft.com.cn/article/cddjcpj.html


咨詢
建站咨詢
