#使用pip 升级psutil模块
# pip install --upgrade psutil
Downloading/unpacking psutil from https://pypi.python.org/packages/source/p/psutil/psutil-3.1.1.tar.gz#md5=b34360627efb429cb18a4a3143b18c8c
Downloading psutil-3.1.1.tar.gz (247kB): 247kB downloaded
Running setup.py (path:/tmp/pip_build_root/psutil/setup.py) egg_info for package psutil
/tmp/pip_build_root/psutil/setup.py:12: DeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
import os
warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: manifest_maker: MANIFEST.in, line 18: 'recursive-include' expects <dir> <pattern1> <pattern2> ...
Installing collected packages: psutil
Found existing installation: psutil 2.0.0
Uninstalling psutil:
Successfully uninstalled psutil
Running setup.py install for psutil
building 'psutil._psutil_linux' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSUTIL_VERSION=311 -I/usr/include/python2.6 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.6/psutil/_psutil_linux.o
psutil/_psutil_linux.c: In function ‘psutil_proc_cpu_affinity_set’:
psutil/_psutil_linux.c:420: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -pthread -shared build/temp.linux-x86_64-2.6/psutil/_psutil_linux.o -L/usr/lib64 -lpython2.6 -o build/lib.linux-x86_64-2.6/psutil/_psutil_linux.so
building 'psutil._psutil_posix' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-2.6/psutil/_psutil_posix.o
gcc -pthread -shared build/temp.linux-x86_64-2.6/psutil/_psutil_posix.o -L/usr/lib64 -lpython2.6 -o build/lib.linux-x86_64-2.6/psutil/_psutil_posix.so
warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: manifest_maker: MANIFEST.in, line 18: 'recursive-include' expects <dir> <pattern1> <pattern2> ...
Successfully installed psutil
Cleaning up...
#使用pip 卸载Python操作Excel的模块 XlsxWriter
[root@centos01 pip-1.5.4]# pip uninstall XlsxWriter
Uninstalling XlsxWriter:
/usr/bin/vba_extract.py
/usr/bin/vba_extract.pyc
/usr/lib/python2.6/site-packages/XlsxWriter-0.7.3.dist-info/DESCRIPTION.rst
/usr/lib/python2.6/site-packages/XlsxWriter-0.7.3.dist-info/METADATA
/usr/lib/python2.6/site-packages/XlsxWriter-0.7.3.dist-info/RECORD
/usr/lib/python2.6/site-packages/XlsxWriter-0.7.3.dist-info/WHEEL
/usr/lib/python2.6/site-packages/XlsxWriter-0.7.3.dist-info/metadata.json
/usr/lib/python2.6/site-packages/XlsxWriter-0.7.3.dist-info/top_level.txt
/usr/lib/python2.6/site-packages/xlsxwriter/__init__.py
/usr/lib/python2.6/site-packages/xlsxwriter/__init__.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/app.py
/usr/lib/python2.6/site-packages/xlsxwriter/app.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/chart.py
/usr/lib/python2.6/site-packages/xlsxwriter/chart.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/chart_area.py
/usr/lib/python2.6/site-packages/xlsxwriter/chart_area.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/chart_bar.py
/usr/lib/python2.6/site-packages/xlsxwriter/chart_bar.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/chart_column.py
/usr/lib/python2.6/site-packages/xlsxwriter/chart_column.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/chart_doughnut.py
/usr/lib/python2.6/site-packages/xlsxwriter/chart_doughnut.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/chart_line.py
/usr/lib/python2.6/site-packages/xlsxwriter/chart_line.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/chart_pie.py
/usr/lib/python2.6/site-packages/xlsxwriter/chart_pie.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/chart_radar.py
/usr/lib/python2.6/site-packages/xlsxwriter/chart_radar.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/chart_scatter.py
/usr/lib/python2.6/site-packages/xlsxwriter/chart_scatter.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/chart_stock.py
/usr/lib/python2.6/site-packages/xlsxwriter/chart_stock.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/chartsheet.py
/usr/lib/python2.6/site-packages/xlsxwriter/chartsheet.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/comments.py
/usr/lib/python2.6/site-packages/xlsxwriter/comments.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/compat_collections.py
/usr/lib/python2.6/site-packages/xlsxwriter/compat_collections.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/compatibility.py
/usr/lib/python2.6/site-packages/xlsxwriter/compatibility.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/contenttypes.py
/usr/lib/python2.6/site-packages/xlsxwriter/contenttypes.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/core.py
/usr/lib/python2.6/site-packages/xlsxwriter/core.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/drawing.py
/usr/lib/python2.6/site-packages/xlsxwriter/drawing.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/format.py
/usr/lib/python2.6/site-packages/xlsxwriter/format.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/packager.py
/usr/lib/python2.6/site-packages/xlsxwriter/packager.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/relationships.py
/usr/lib/python2.6/site-packages/xlsxwriter/relationships.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/shape.py
/usr/lib/python2.6/site-packages/xlsxwriter/shape.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/sharedstrings.py
/usr/lib/python2.6/site-packages/xlsxwriter/sharedstrings.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/styles.py
/usr/lib/python2.6/site-packages/xlsxwriter/styles.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/table.py
/usr/lib/python2.6/site-packages/xlsxwriter/table.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/theme.py
/usr/lib/python2.6/site-packages/xlsxwriter/theme.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/utility.py
/usr/lib/python2.6/site-packages/xlsxwriter/utility.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/vml.py
/usr/lib/python2.6/site-packages/xlsxwriter/vml.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/workbook.py
/usr/lib/python2.6/site-packages/xlsxwriter/workbook.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/worksheet.py
/usr/lib/python2.6/site-packages/xlsxwriter/worksheet.pyc
/usr/lib/python2.6/site-packages/xlsxwriter/xmlwriter.py
/usr/lib/python2.6/site-packages/xlsxwriter/xmlwriter.pyc
Proceed (y/n)? y
Successfully uninstalled XlsxWriter
Ubuntu 14.04安装Python 3.3.5
《Python核心编程 第二版》.(Wesley J. Chun ).[高清PDF中文版]