cnetos6.4 x64 阿里云环境初探--安装pip,及pymysql
2015-02-14 09:48
239 查看
由于以前帮朋友买过阿里云服务器,一直以为,不能再体验新用户免费了,由于最近比较有心情研究python,linux,就报着侥幸的心理,重新注册一个帐号试一下,注册完之后,惊奇的发现,原来阿里只要是新注册的帐户就可以免费申请半年的ces,不验证身份信息,同一个实名认证下不同的帐号,也可以免费申请,开了1M带宽,并顺手申请了免费的数据库,yeah….开始真正的服务器学习之旅了.
centos6.5下默认的python 是2.6.6 本来想升级到2.7的, bing了一下,发现升级后有系统默认的很多东西要重新配,比如yum ,所以做罢,2.6就2.6吧.
下面是安装 pip 和pymysql过程
其实 就两句:
centos6.5下默认的python 是2.6.6 本来想升级到2.7的, bing了一下,发现升级后有系统默认的很多东西要重新配,比如yum ,所以做罢,2.6就2.6吧.
下面是安装 pip 和pymysql过程
[root@iZ28w7cidk2Z ~]# yum install python-pip Loaded plugins: security Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package python-pip.noarch 0:1.3.1-4.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: python-pip noarch 1.3.1-4.el6 epel 330 k Transaction Summary ================================================================================ Install 1 Package(s) Total download size: 330 k Installed size: 1.0 M Is this ok [y/N]: y Downloading Packages: python-pip-1.3.1-4.el6.noarch.rpm | 330 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : python-pip-1.3.1-4.el6.noarch 1/1 Verifying : python-pip-1.3.1-4.el6.noarch 1/1 Installed: python-pip.noarch 0:1.3.1-4.el6 Complete! [root@iZ28w7cidk2Z ~]# pip install pymysql Downloading/unpacking pymysql Downloading PyMySQL-0.6.3.tar.gz (53kB): 53kB downloaded Running setup.py egg_info for package pymysql Installing collected packages: pymysql Running setup.py install for pymysql Successfully installed pymysql Cleaning up... [root@iZ28w7cidk2Z ~]# python Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pymysql >>>
其实 就两句:
#yum install python-pip #pip install pymysql
相关文章推荐
- Linux(CentOS6.4)环境下安装PIP
- 基于阿里云Centos6.8 x64编译安装网站生产环境
- 一步一步安装sybase(suse10 x64环境) 之二
- Ubuntu 11.04 x64 常用软件及编译安装LAMP开发环境
- 8、单机运行环境搭建之 --CentOS-6.4安装vsftpd
- Windows7 x64 跨平台开发环境安装配置
- Windows7 x64 跨平台开发环境安装配置
- x64环境下安装SQL Server 2008(RTM) BI Development Studio 失败的解决方法
- centos 6.4 x64安装bugfree
- 6、单机运行环境搭建之 --CentOS-6.4安装MySQL 5.6.10并修改MySQL的root用户密码
- CentOS 6.4 64位 安装 rails 环境
- Centos 6.4 x64 minimal版 安装 oracle 11gr2
- 请教如何在Win7 x64环境下安装WDK7.1??
- fedora 16 x64 安装gnustep object-c开发环境
- 阿里云redhat5.4企业版安装java web环境
- 7、单机运行环境搭建之 --CentOS-6.4安装Memcached
- Ubuntu 11.04 x64 常用软件及编译安装LAMP开发环境
- rhel x64环境下安装ORACLE10G文档整理,测试通过
- 阿里云无法安装编译环境
- Android初探:LINUX(Ubuntu)下安装开发环境