【原创】Python 工具 cheat

本文涉及的产品
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
简介:
本文针对 cheat 安装过程中遇到的问题进行简单说明和解决。  

从 github 上下载
[root@Betty GIT]# git clone https://github.com/chrisallenlane/cheat.git
[root@Betty GIT]# cd cheat/
[root@Betty cheat]# 
[root@Betty cheat]# ll
总用量 32
drwxr-xr-x 2 root root 4096 324 13:25 bin
-rw-r--r-- 1 root root   21 324 13:25 CHANGELOG
drwxr-xr-x 5 root root 4096 324 13:25 cheat
-rw-r--r-- 1 root root  668 324 13:25 CONTRIBUTING.md
-rw-r--r-- 1 root root  120 324 13:25 LICENSE
drwxr-xr-x 2 root root 4096 324 13:25 licenses
-rw-r--r-- 1 root root 3546 324 13:25 README.md
-rw-r--r-- 1 root root  891 324 13:25 setup.py
[root@Betty cheat]#
安装,从安装过程的打印信息中可以看出 cheatsheets 中包含了哪些 Linux 命令  
[root@Betty cheat]# python setup.py install
/usr/local/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/cheat
copying cheat/sheet.py -> build/lib/cheat
copying cheat/sheets.py -> build/lib/cheat
copying cheat/utils.py -> build/lib/cheat
copying cheat/__init__.py -> build/lib/cheat
creating build/lib/cheat/cheatsheets
copying cheat/cheatsheets/__init__.py -> build/lib/cheat/cheatsheets
creating build/lib/cheat/test
copying cheat/test/__init__.py -> build/lib/cheat/test
copying cheat/cheatsheets/aptitude -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/bash -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ping -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/readline -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/du -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/split -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/csplit -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/systemd -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ss -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/sort -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/stdout -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/indent -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/iptables -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/apk -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/netstat -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/grep -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/gdb -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ssh-copy-id -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/git -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/journalctl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/gcc -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ncat -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tcpdump -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/youtube-dl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/yum -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/asciiart -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/numfmt -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/dd -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/xargs -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ls -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/php -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/rsync -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tr -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/nmcli -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/pacman -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/notify-send -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ssh -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/markdown -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/gpg -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/asterisk -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tee -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/irssi -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/iwconfig -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/crontab -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/jrnl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/lib -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/rss2email -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/udisksctl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/at -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ip -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/diff -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/cups -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/sockstat -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ps -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/snmpwalk -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/gzip -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/7z -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/zoneadm -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/python -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/sqlmap -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/lsof -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/mkdir -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/apt-cache -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/xrandr -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/p4 -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/awk -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tar -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/mdadm -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/uniq -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/unzip -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tree -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/nc -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/rpm -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/weechat -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/jq -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/lvm -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/more -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ssh-keygen -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/hardware-info -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/nkf -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/pip -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/dpkg -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/strace -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/top -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/vim -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/uname -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/shred -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/pdftk -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/wget -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ab -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/sed -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/date -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/od -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/less -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/nmap -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/rename -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/emacs -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/openssl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/distcc -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/gs -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/history -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/mysqldump -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ifconfig -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/systemctl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/chmod -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/scp -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/smbclient -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/dhclient -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/zip -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/mount -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/apparmor -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/truncate -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ffmpeg -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/mysql -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/rm -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/find -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/screen -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ntp -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/convert -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/man -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/paste -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/sam2p -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tail -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/vagrant -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/apt-get -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/head -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ln -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/apt -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/tmux -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/docker -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/route -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/chown -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/yaourt -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/http -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/nova -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/ping6 -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/bower -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/hub -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/dnf -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/cut -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/for -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/curl -> build/lib/cheat/cheatsheets
copying cheat/cheatsheets/df -> build/lib/cheat/cheatsheets
running build_scripts
creating build/scripts-2.7
copying and adjusting bin/cheat -> build/scripts-2.7
changing mode of build/scripts-2.7/cheat from 644 to 755
running install_lib
creating /usr/local/lib/python2.7/site-packages/cheat
copying build/lib/cheat/sheet.py -> /usr/local/lib/python2.7/site-packages/cheat
copying build/lib/cheat/sheets.py -> /usr/local/lib/python2.7/site-packages/cheat
copying build/lib/cheat/utils.py -> /usr/local/lib/python2.7/site-packages/cheat
creating /usr/local/lib/python2.7/site-packages/cheat/test
copying build/lib/cheat/test/__init__.py -> /usr/local/lib/python2.7/site-packages/cheat/test
creating /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/aptitude -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/bash -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ping -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/readline -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/du -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/split -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/csplit -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/systemd -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ss -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/sort -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/stdout -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/indent -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/iptables -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/apk -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/netstat -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/grep -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/gdb -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ssh-copy-id -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/git -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/journalctl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/gcc -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ncat -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tcpdump -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/youtube-dl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/yum -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/asciiart -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/numfmt -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/dd -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/xargs -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ls -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/php -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/rsync -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tr -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/nmcli -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/pacman -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/notify-send -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ssh -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/markdown -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/gpg -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/asterisk -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tee -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/irssi -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/iwconfig -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/crontab -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/jrnl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/lib -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/rss2email -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/udisksctl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/at -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ip -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/diff -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/cups -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/sockstat -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ps -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/snmpwalk -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/gzip -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/7z -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/zoneadm -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/python -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/sqlmap -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/lsof -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/mkdir -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/apt-cache -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/xrandr -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/p4 -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/awk -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tar -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/mdadm -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/uniq -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/unzip -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tree -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/nc -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/rpm -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/weechat -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/jq -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/lvm -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/more -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ssh-keygen -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/hardware-info -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/nkf -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/pip -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/dpkg -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/strace -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/top -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/vim -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/uname -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/shred -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/pdftk -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/wget -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ab -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/sed -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/date -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/od -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/less -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/nmap -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/rename -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/emacs -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/openssl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/distcc -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/gs -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/history -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/__init__.py -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/mysqldump -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ifconfig -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/systemctl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/chmod -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/scp -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/smbclient -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/dhclient -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/zip -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/mount -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/apparmor -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/truncate -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ffmpeg -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/mysql -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/rm -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/find -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/screen -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ntp -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/convert -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/man -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/paste -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/sam2p -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tail -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/vagrant -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/apt-get -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/head -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ln -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/apt -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/tmux -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/docker -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/route -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/chown -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/yaourt -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/http -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/nova -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/ping6 -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/bower -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/hub -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/dnf -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/cut -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/for -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/curl -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/cheatsheets/df -> /usr/local/lib/python2.7/site-packages/cheat/cheatsheets
copying build/lib/cheat/__init__.py -> /usr/local/lib/python2.7/site-packages/cheat
byte-compiling /usr/local/lib/python2.7/site-packages/cheat/sheet.py to sheet.pyc
byte-compiling /usr/local/lib/python2.7/site-packages/cheat/sheets.py to sheets.pyc
byte-compiling /usr/local/lib/python2.7/site-packages/cheat/utils.py to utils.pyc
byte-compiling /usr/local/lib/python2.7/site-packages/cheat/test/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/site-packages/cheat/cheatsheets/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/site-packages/cheat/__init__.py to __init__.pyc
running install_scripts
copying build/scripts-2.7/cheat -> /usr/local/bin
changing mode of /usr/local/bin/cheat to 755
running install_egg_info
Writing /usr/local/lib/python2.7/site-packages/cheat-2.1.22-py2.7.egg-info
[root@Betty cheat]#

发现缺少 docopt 模块  
[root@Betty cheat]# cheat tar
Traceback (most recent call last):
  File "/usr/local/bin/cheat", line 36, in <module>
    from docopt import docopt
ImportError: No module named docopt
[root@Betty cheat]# 
[root@Betty cheat]#
[root@Betty cheat]# which pip
/usr/local/bin/pip
[root@Betty cheat]#

通过 pip 安装 docopt 时,发现又缺少 pkg_resources  
[root@Betty cheat]# 
[root@Betty cheat]# pip install docopt
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
[root@Betty cheat]#

通过 pip 安装 pkg_resources 时,发现出现“死循环”依赖~~(我起的名字)  
[root@Betty cheat]# 
[root@Betty cheat]# pip install pkg_resources
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
[root@Betty cheat]#
查阅网上信息,大概怀疑是由于环境中相关工具集过老导致。  

通过 wget 下载 ez_setup.py 并调用 python 执行(会自动下载 setuptools)  
[root@Betty cheat]# 
[root@Betty cheat]# wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python
--2016-03-24 13:35:06--  https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
正在解析主机 bitbucket.org... 104.192.143.2, 104.192.143.3, 104.192.143.1
正在连接 bitbucket.org|104.192.143.2|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:12059 (12K) [text/plain]
正在保存至: “STDOUT”

100%[=====================================================================================================================================================================>] 12,059      --.-K/s   in 0s      

2016-03-24 13:35:13 (808 MB/s) - 已写入标准输出 [12059/12059]

Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-20.3.1.zip
Extracting in /tmp/tmpJKRVSK
Now working in /tmp/tmpJKRVSK/setuptools-20.3.1
Installing Setuptools
running install
running bdist_egg
running egg_info
writing requirements to setuptools.egg-info/requires.txt
writing setuptools.egg-info/PKG-INFO
writing top-level names to setuptools.egg-info/top_level.txt
writing dependency_links to setuptools.egg-info/dependency_links.txt
writing entry points to setuptools.egg-info/entry_points.txt
reading manifest file 'setuptools.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.py' under directory '_markerlib'
warning: no files found matching '*' under directory 'setuptools/_vendor'
writing manifest file 'setuptools.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
copying easy_install.py -> build/lib
creating build/lib/pkg_resources
copying pkg_resources/__init__.py -> build/lib/pkg_resources
creating build/lib/setuptools
copying setuptools/py26compat.py -> build/lib/setuptools
copying setuptools/archive_util.py -> build/lib/setuptools
copying setuptools/extension.py -> build/lib/setuptools
copying setuptools/package_index.py -> build/lib/setuptools
copying setuptools/py27compat.py -> build/lib/setuptools
copying setuptools/dist.py -> build/lib/setuptools
copying setuptools/ssl_support.py -> build/lib/setuptools
copying setuptools/msvc9_support.py -> build/lib/setuptools
copying setuptools/utils.py -> build/lib/setuptools
copying setuptools/site-patch.py -> build/lib/setuptools
copying setuptools/py31compat.py -> build/lib/setuptools
copying setuptools/depends.py -> build/lib/setuptools
copying setuptools/lib2to3_ex.py -> build/lib/setuptools
copying setuptools/__init__.py -> build/lib/setuptools
copying setuptools/sandbox.py -> build/lib/setuptools
copying setuptools/launch.py -> build/lib/setuptools
copying setuptools/windows_support.py -> build/lib/setuptools
copying setuptools/version.py -> build/lib/setuptools
copying setuptools/unicode_utils.py -> build/lib/setuptools
creating build/lib/pkg_resources/extern
copying pkg_resources/extern/__init__.py -> build/lib/pkg_resources/extern
creating build/lib/pkg_resources/_vendor
copying pkg_resources/_vendor/six.py -> build/lib/pkg_resources/_vendor
copying pkg_resources/_vendor/__init__.py -> build/lib/pkg_resources/_vendor
copying pkg_resources/_vendor/pyparsing.py -> build/lib/pkg_resources/_vendor
creating build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/__about__.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/markers.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/_structures.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/requirements.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/_compat.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/utils.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/__init__.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/specifiers.py -> build/lib/pkg_resources/_vendor/packaging
copying pkg_resources/_vendor/packaging/version.py -> build/lib/pkg_resources/_vendor/packaging
creating build/lib/setuptools/command
copying setuptools/command/build_ext.py -> build/lib/setuptools/command
copying setuptools/command/easy_install.py -> build/lib/setuptools/command
copying setuptools/command/build_py.py -> build/lib/setuptools/command
copying setuptools/command/bdist_rpm.py -> build/lib/setuptools/command
copying setuptools/command/rotate.py -> build/lib/setuptools/command
copying setuptools/command/bdist_wininst.py -> build/lib/setuptools/command
copying setuptools/command/upload.py -> build/lib/setuptools/command
copying setuptools/command/bdist_egg.py -> build/lib/setuptools/command
copying setuptools/command/saveopts.py -> build/lib/setuptools/command
copying setuptools/command/alias.py -> build/lib/setuptools/command
copying setuptools/command/egg_info.py -> build/lib/setuptools/command
copying setuptools/command/sdist.py -> build/lib/setuptools/command
copying setuptools/command/develop.py -> build/lib/setuptools/command
copying setuptools/command/test.py -> build/lib/setuptools/command
copying setuptools/command/install.py -> build/lib/setuptools/command
copying setuptools/command/setopt.py -> build/lib/setuptools/command
copying setuptools/command/register.py -> build/lib/setuptools/command
copying setuptools/command/__init__.py -> build/lib/setuptools/command
copying setuptools/command/install_scripts.py -> build/lib/setuptools/command
copying setuptools/command/upload_docs.py -> build/lib/setuptools/command
copying setuptools/command/install_egg_info.py -> build/lib/setuptools/command
copying setuptools/command/install_lib.py -> build/lib/setuptools/command
creating build/lib/setuptools/extern
copying setuptools/extern/__init__.py -> build/lib/setuptools/extern
copying setuptools/script (dev).tmpl -> build/lib/setuptools
copying setuptools/script.tmpl -> build/lib/setuptools
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
copying build/lib/easy_install.py -> build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/pkg_resources
creating build/bdist.linux-x86_64/egg/pkg_resources/extern
copying build/lib/pkg_resources/extern/__init__.py -> build/bdist.linux-x86_64/egg/pkg_resources/extern
copying build/lib/pkg_resources/__init__.py -> build/bdist.linux-x86_64/egg/pkg_resources
creating build/bdist.linux-x86_64/egg/pkg_resources/_vendor
copying build/lib/pkg_resources/_vendor/six.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor
creating build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/__about__.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/markers.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/_structures.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/requirements.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/_compat.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/utils.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/__init__.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/specifiers.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/packaging/version.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging
copying build/lib/pkg_resources/_vendor/__init__.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor
copying build/lib/pkg_resources/_vendor/pyparsing.py -> build/bdist.linux-x86_64/egg/pkg_resources/_vendor
creating build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/py26compat.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/archive_util.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/extension.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/package_index.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/py27compat.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/script (dev).tmpl -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/dist.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/ssl_support.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/msvc9_support.py -> build/bdist.linux-x86_64/egg/setuptools
creating build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/build_ext.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/easy_install.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/build_py.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/bdist_rpm.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/rotate.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/bdist_wininst.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/upload.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/bdist_egg.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/saveopts.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/alias.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/egg_info.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/sdist.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/develop.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/test.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/install.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/setopt.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/register.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/__init__.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/install_scripts.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/upload_docs.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/install_egg_info.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/command/install_lib.py -> build/bdist.linux-x86_64/egg/setuptools/command
copying build/lib/setuptools/utils.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/site-patch.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/py31compat.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/depends.py -> build/bdist.linux-x86_64/egg/setuptools
creating build/bdist.linux-x86_64/egg/setuptools/extern
copying build/lib/setuptools/extern/__init__.py -> build/bdist.linux-x86_64/egg/setuptools/extern
copying build/lib/setuptools/script.tmpl -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/lib2to3_ex.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/__init__.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/sandbox.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/launch.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/windows_support.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/version.py -> build/bdist.linux-x86_64/egg/setuptools
copying build/lib/setuptools/unicode_utils.py -> build/bdist.linux-x86_64/egg/setuptools
byte-compiling build/bdist.linux-x86_64/egg/easy_install.py to easy_install.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/extern/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/six.py to six.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/__about__.py to __about__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/markers.py to markers.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/_structures.py to _structures.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/requirements.py to requirements.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/_compat.py to _compat.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/utils.py to utils.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/specifiers.py to specifiers.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/packaging/version.py to version.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pkg_resources/_vendor/pyparsing.py to pyparsing.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/py26compat.py to py26compat.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/archive_util.py to archive_util.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/extension.py to extension.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/package_index.py to package_index.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/py27compat.py to py27compat.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/dist.py to dist.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/ssl_support.py to ssl_support.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/msvc9_support.py to msvc9_support.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/build_ext.py to build_ext.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py to easy_install.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/build_py.py to build_py.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/bdist_rpm.py to bdist_rpm.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/rotate.py to rotate.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/bdist_wininst.py to bdist_wininst.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/upload.py to upload.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/bdist_egg.py to bdist_egg.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/saveopts.py to saveopts.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/alias.py to alias.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/egg_info.py to egg_info.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/sdist.py to sdist.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/develop.py to develop.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/test.py to test.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/install.py to install.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/setopt.py to setopt.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/register.py to register.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/install_scripts.py to install_scripts.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/upload_docs.py to upload_docs.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/install_egg_info.py to install_egg_info.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/command/install_lib.py to install_lib.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/utils.py to utils.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/site-patch.py to site-patch.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/py31compat.py to py31compat.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/depends.py to depends.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/extern/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/lib2to3_ex.py to lib2to3_ex.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/sandbox.py to sandbox.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/launch.py to launch.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/windows_support.py to windows_support.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/version.py to version.pyc
byte-compiling build/bdist.linux-x86_64/egg/setuptools/unicode_utils.py to unicode_utils.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying setuptools.egg-info/zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
creating dist
creating 'dist/setuptools-20.3.1-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing setuptools-20.3.1-py2.7.egg
Copying setuptools-20.3.1-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding setuptools 20.3.1 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.7 script to /usr/local/bin

Installed /usr/local/lib/python2.7/site-packages/setuptools-20.3.1-py2.7.egg
Processing dependencies for setuptools==20.3.1
Finished processing dependencies for setuptools==20.3.1
[root@Betty cheat]#

重新安装 pkg_resources ,此时报错为 "pkg_resources.DistributionNotFound" ,说明当前 pip 版本过低。  
[root@Betty cheat]# pip install pkg_resources
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2900, in <module>
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2886, in _call_aside
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2913, in _initialize_master_working_set
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 642, in _build_master
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 943, in require
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 830, in resolve
pkg_resources.DistributionNotFound: The 'pip==1.3.1' distribution was not found and is required by the application
[root@Betty cheat]#
升级 pip 为最新版本  
[root@Betty cheat]# 
[root@Betty cheat]# easy_install -U pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 8.1.1
Downloading https://pypi.python.org/packages/source/p/pip/pip-8.1.1.tar.gz#md5=6b86f11841e89c8241d689956ba99ed7
Processing pip-8.1.1.tar.gz
Writing /tmp/easy_install-3SW3zW/pip-8.1.1/setup.cfg
Running pip-8.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-3SW3zW/pip-8.1.1/egg-dist-tmp-DTV0YK
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.landscape.yml'
warning: no previously-included files found matching 'pip/_vendor/Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching '.github'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
creating /usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg
Extracting pip-8.1.1-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding pip 8.1.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin

Installed /usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
[root@Betty cheat]#

再次安装 pkg_resources 成功
 
[root@Betty cheat]# pip install pkg_resources
Collecting pkg-resources
/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Could not find a version that satisfies the requirement pkg-resources (from versions: )
No matching distribution found for pkg-resources
/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
[root@Betty cheat]#
安装 docopt 成功  
[root@Betty cheat]# pip install docopt
Collecting docopt
/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/site-packages/pip-8.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading docopt-0.6.2.tar.gz
Installing collected packages: docopt
  Running setup.py install for docopt ... done
Successfully installed docopt-0.6.2
[root@Betty cheat]#
查看当前通过 pip 安装的工具  
[root@Betty cheat]# pip list
cheat (2.1.22)
docopt (0.6.2)
pip (8.1.1)
setuptools (20.3.1)
[root@Betty cheat]#

可以正常使用 cheat 命令了  
[root@Betty cheat]# cheat tar
# To extract an uncompressed archive:
tar -xvf /path/to/foo.tar

# To create an uncompressed archive:
tar -cvf /path/to/foo.tar /path/to/foo/

# To extract a .gz archive:
tar -xzvf /path/to/foo.tgz

# To create a .gz archive:
tar -czvf /path/to/foo.tgz /path/to/foo/

# To list the content of an .gz archive:
tar -ztvf /path/to/foo.tgz

# To extract a .bz2 archive:
tar -xjvf /path/to/foo.tgz

# To create a .bz2 archive:
tar -cjvf /path/to/foo.tgz /path/to/foo/

# To list the content of an .bz2 archive:
tar -jtvf /path/to/foo.tgz

# To create a .gz archive and exclude all jpg,gif,... from the tgz
tar czvf /path/to/foo.tgz --exclude=\*.{jpg,gif,png,wmv,flv,tar.gz,zip} /path/to/foo/

# To use parallel (multi-threaded) implementation of compression algorithms:
tar -z ... -> tar -Ipigz ...
tar -j ... -> tar -Ipbzip2 ...
tar -J ... -> tar -Ipixz ...

[root@Betty cheat]#


相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
相关文章
|
1月前
|
缓存 API Python
Python中的装饰器:优雅而强大的函数增强工具
在Python编程中,装饰器是一种强大的工具,可以在不改变原函数代码的情况下,对函数进行增强和扩展。本文将介绍装饰器的基本概念、用法以及实际应用场景,帮助读者更好地理解并运用装饰器提升代码的可维护性和灵活性。
|
1月前
|
存储 开发工具 git
Python中的版本控制和代码协作工具
在Python项目中,版本控制和代码协作是非常重要的。最常用的版本控制工具是Git,而代码协作则通常通过Git配合代码托管平台(如GitHub、GitLab等)来实现。以下是一个基本的流程,说明如何使用Git进行版本控制以及如何通过GitHub进行代码协作。
|
1天前
|
数据采集 数据可视化 数据挖掘
R语言与Python:比较两种数据分析工具
【4月更文挑战第25天】R语言和Python是目前最流行的两种数据分析工具。本文将对这两种工具进行比较,包括它们的历史、特点、应用场景、社区支持、学习资源、性能等方面,以帮助读者更好地了解和选择适合自己的数据分析工具。
|
7天前
|
机器学习/深度学习 数据挖掘 计算机视觉
python数据分析工具SciPy
【4月更文挑战第15天】SciPy是Python的开源库,用于数学、科学和工程计算,基于NumPy扩展了优化、线性代数、积分、插值、特殊函数、信号处理、图像处理和常微分方程求解等功能。它包含优化、线性代数、积分、信号和图像处理等多个模块。通过SciPy,可以方便地执行各种科学计算任务。例如,计算高斯分布的PDF,需要结合NumPy使用。要安装SciPy,可以使用`pip install scipy`命令。这个库极大地丰富了Python在科学计算领域的应用。
12 1
|
8天前
|
数据可视化 数据挖掘 Python
Python中数据分析工具Matplotlib
【4月更文挑战第14天】Matplotlib是Python的数据可视化库,能生成多种图表,如折线图、柱状图等。以下是一个绘制简单折线图的代码示例: ```python import matplotlib.pyplot as plt x = [1, 2, 3, 4, 5] y = [2, 4, 6, 8, 10] plt.figure() plt.plot(x, y) plt.title(&#39;简单折线图&#39;) plt.xlabel(&#39;X轴&#39;) plt.ylabel(&#39;Y轴&#39;) plt.show() ```
12 1
|
8天前
|
数据采集 SQL 数据可视化
Python数据分析工具Pandas
【4月更文挑战第14天】Pandas是Python的数据分析库,提供Series和DataFrame数据结构,用于高效处理标记数据。它支持从多种数据源加载数据,包括CSV、Excel和SQL。功能包括数据清洗(处理缺失值、异常值)、数据操作(切片、过滤、分组)、时间序列分析及与Matplotlib等库集成进行数据可视化。其高性能底层基于NumPy,适合大型数据集处理。通过加载数据、清洗、分析和可视化,Pandas简化了数据分析流程。广泛的学习资源使其成为数据分析初学者的理想选择。
15 1
|
14天前
|
测试技术 开发者 Python
Python中的装饰器:优雅而强大的函数修饰工具
在Python编程中,装饰器是一种强大的工具,用于修改函数或方法的行为。本文将深入探讨Python中装饰器的概念、用法和实际应用,以及如何利用装饰器实现代码的优雅和高效。
|
1月前
|
数据采集 搜索推荐 数据挖掘
使用Python制作一个批量查询搜索排名的SEO免费工具
最近工作中需要用上 Google SEO(搜索引擎优化),有了解过的朋友们应该都知道SEO必不可少的工作之一就是查询关键词的搜索排名。关键词少的时候可以一个一个去查没什么问题,但是到了后期,一个网站都有几百上千的关键词,你再去一个一个查,至少要花费数小时的时间。 虽然市面上有很多SEO免费或者收费工具,但免费的基本都不能批量查,网上免费的最多也就只能10个10个查询,而且查询速度很慢。收费的工具如Ahrefs、SEMrush等以月为单位收费最低也都要上百美刀/月,当然如果觉得价格合适也可以进行购买,毕竟这些工具的很多功能都很实用。今天我给大家分享的这个排名搜索工具基于python实现,当然肯定
40 0
|
1月前
|
XML Shell Linux
性能工具之 JMeter 使用 Python 脚本快速执行
性能工具之 JMeter 使用 Python 脚本快速执行
41 1
性能工具之 JMeter 使用 Python 脚本快速执行
|
1月前
|
数据可视化 数据挖掘 Python
Python中的数据可视化工具Matplotlib简介与实践
在本文中,我们将介绍Python中常用的数据可视化工具Matplotlib,包括其基本概念、常用功能以及实际应用。通过学习Matplotlib,读者可以更好地理解和运用数据可视化技术,提升数据分析与展示的能力。