Ceontos之Pyhon easy_install 和 pip 安装以及其他扩展库的安装

一、easy_install安装

curl https://pypi.python.org/packages/source/s/setuptools/setuptools-18.6.1.tar.gz#md5=d4797a533b3c7466fd36a791c2de94d2 -o setuptools-18.6.1.tar.gz
tar zxvf setuptools-18.6.1.tar.gz 
cd setuptools-18.6.1
python setup.py install

二、pip安装

curl https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz#md5=3823d2343d9f3aaab21cf9c917710196 -o pip-7.1.2.tar.gz
tar zxvf pip-7.1.2.tar.gz 
cd pip-7.1.2
python setup.py install

三、其他扩展库安装

# ImportError: No module named importlib
easy_install importlib
    
# ImportError: No module named yaml
easy_install pyyaml
    
# ImportError: No module named MySQLdb
pip install mysql-python 
    
# EnvironmentError: mysql_config not found
yum install mysql-devel
    
# 错误:Python.h:没有那个文件或目录
yum  install python-devel
# yum 安装pip
yum install python-pip
pip install --upgrade pip
pip install argparse sqlalchemy numpy pandas
pip install psutil
pip install thrift
# ImportError: No module named setproctitle
pip install setproctitle
# ImportError: No module named prettytable
pip install prettytable
# ImportError: No module named aliyunsdkcore
pip install aliyun-python-sdk-rds


by 雪洁 2015-11-27 03:32:24 2138 views
我来说几句

相关文章