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 便可。html

# 編譯安裝 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 版本見:http://www.javashuo.com/article/p-nwewnnxb-gk.htmlpython

 

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

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

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

 

Over :-)flask

相關文章
相關標籤/搜索