tensorflow搭建-流程不完善

Python包管理

  • 安装:pip install xxx, conda install xxx

  • 卸载:pip uninstall xxx, conda uninstall xxx

  • 升级:pip install –upgrade xxx, conda update xxx

  • 详细用法: https://pip.pypa.io/en/stable/reference/

 

一基本操作命令

[root@localhost ~]# history 

    1  ip addr

    2  vi /etc/yum.conf 

    3  shutdown -h now

    4  vi /etc/selinux/config 

    5  systemctl status firewalld

    6  systemctl stop firewalld

    7  systemctl disable firewalld

    8  systemctl status firewalld

    9  firewall-cmd --state

   10  yum install epel-release -y

   11  vi /etc/hostname 

   12  ip addr

   13  vi /etc/hosts

   14  yum install ntp -y

   15  systemctl enable ntpd.service

   16  systemctl start ntpd.service

   17  yum install python-devel libffi-devel gcc openssl-devel git python-pip

   18  yum install python-devel libffi-devel gcc openssl-devel git python-pip -y

   19  history 

 

二安装图形页面

在命令行下 输入下面的命令来安装Gnome包

yum groupinstall "X Window System"  

yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

更新系统的运行级别

ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

reboot

[root@kolla ~]# bash Anaconda3-5.2.0-Linux-x86_64.sh 

pip install distributed

 

pip install tensorflow

[root@kolla ~]# conda install tensorflow

[root@kolla ~]# cat .bashrc
# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi

# added by Anaconda3 installer
export PATH="/root/anaconda3/bin:$PATH"
LD_LIBRARY_PATH=/root/anaconda3/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值