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