CentOS 7 软件安装简记

 

Install SW Record
=================

$ sudo yum install vim-X11.x86_64 
$ sudo yum install clang.x86_64
$ sudo yum install tree.x86_64
$ sudo yum install epel-release.noarch        # for get SW from Extra-Package-for-Enterprise-Linux
$ sudo yum install python2-pip.noarch
$ sudo yum install python-tools.x86_64        # for tcl, tix, tk, tkinter, idle

# maybe need `-ignore-installed` due to old version installed prevent new
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --ignore-installed pyparsing   
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ matplotlib==2.2
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ scipy
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pandas

$ sudo yum install wxPython.x86_64
$ sudo yum install p7zip.x86_64               # Note: usage name is `7za`
$ sudo yum install chromium.x86_64
$ sudo yum install emacs.x86_64

# for ipython
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ dnspython==1.15
$ sudo yum install python-devel.x86_64
$ sudo yum install openldap-devel.x86_64
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --ignore-installed python-ldap==3.0
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ ipython==5.0

 

# for python36
$ sudo yum install python36.x86_64        # then can use  'python36' to start python3
$ sudo yum install python36-devel.x86_64
$ sudo yum install python36-idle.x86_64
$ sudo yum install python36-pip.noarch    # then can use 'pip3.6' 
$ sudo pip3.6 install --upgrade pip       # upgrade pip3
$ sudo pip2 install --upgrade pip         # upgrade pip2

这样,/usr/bin/pip, /usr/bin/pip2, /usr/bin/pip2.7 将指向 Python2。/usr/local/bin/pip, /usr/local/bin/pip3, /usr/local/bin/pip3.6 将指向 Python3。具体使用的时候,直接用 pip2pip3 即可。

# 编译安装 python37

# 安装依赖包

$ sudo yum install zlib-devel.x86_64 $ sudo yum install bzip2-devel.x86_64 $ sudo yum install openssl-devel.x86_64 $ sudo yum install ncurses-devel.x86_64 $ sudo yum install sqlite-devel.x86_64 $ sudo yum install readline-devel.x86_64 $ sudo yum install tk-devel.x86_64 $ sudo yum install gdbm-devel.x86_64 $ sudo yum install libdb4-devel.x86_64 $ sudo yum install libpcap-devel.x86_64 $ sudo yum install xz-devel.x86_64 $ sudo yum install libffi-devel.x86_64
# 下载源码包,解压,配置,编译,安装,软链
$
tar --gzip -xvf Python-3.7.3.tgz $ cd Python-3.7.3/ $ ./configure --prefix=/usr/local/python3 --enable-optimizations $ make $ sudo make install $ sudo ln -fs /usr/local/python3/bin/python3.7 /usr/bin/python3 $ sudo ln -fs /usr/local/python3/bin/pip3 /usr/bin/pip3

 

# 异步 web 开发相关

$ sudo
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ aiohttp $ sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ jinja2 $ sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ aiomysql $ sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ flask

 

升级 gvim 到 8.x 版本见:https://www.cnblogs.com/gaowengang/p/10546815.html

 

EPEL 清华源:  https://mirror.tuna.tsinghua.edu.cn/help/epel/

All Linux 搜索安装包:https://pkgs.org/

EL6, EL7 搜索安装包:http://mirror.ghettoforge.org/distributions/gf/el/

 

Over :-)

 

posted @ 2018-12-12 22:42  Anonymous596  阅读(517)  评论(0编辑  收藏  举报