将来的你会感谢现在努力的自己,骚年,趁年轻多努力学习 ------ Jasper_boy

python学习之安装模块

 

安装pip下载python模块

yum -y install python-pip

pip install pandas (pandas要安装的模块名)

 

  

默认使用的官方python源,这个在国内访问很慢,国内可以使用豆瓣或者阿里云的镜像地址

修改pip下载地址源为阿里云的

在root根目录下创建.pip目录

vim .pip/pip.conf

[global]

index-url = http://mirrors.aliyun.com/pypi/simple/

[install]

trusted-host = mirrors.aliyun.com

 

  

 

posted @ 2016-11-08 14:50  Jasper_boy  阅读(276)  评论(0编辑  收藏  举报