专栏首页python3【python】prepare for

【python】prepare for

//////

////// install pip

//////

[root@wode012 tools]# python get-pip.py 

/tmp/tmp4BEPxg/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: 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.

You are using pip version 7.0.3, however version 7.1.2 is available.

You should consider upgrading via the 'pip install --upgrade pip' command.

Collecting pip

/tmp/tmp4BEPxg/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: 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.

  Downloading pip-7.1.2-py2.py3-none-any.whl (1.1MB)

    100% |████████████████████████████████| 1.1MB 50kB/s 

Collecting wheel

  Downloading wheel-0.26.0-py2.py3-none-any.whl (63kB)

    100% |████████████████████████████████| 65kB 35kB/s 

Installing collected packages: pip, wheel

Successfully installed pip-7.1.2 wheel-0.26.0

[root@wode012 tools]# 

//////

////// upgrade pip

//////

[root@wode012 tools]# pip install --upgrade pip

Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages

[root@wode012 tools]# 

//////

////// install tornado

//////

[root@wode012 tools]# pip install tornado

Collecting tornado

/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: 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 tornado-4.3.tar.gz (450kB)

    100% |████████████████████████████████| 454kB 583kB/s 

Requirement already satisfied (use --upgrade to upgrade): backports.ssl-match-hostname in /usr/lib/python2.7/site-packages (from tornado)

Collecting singledispatch (from tornado)

  Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl

Collecting certifi (from tornado)

  Downloading certifi-2015.9.6.2-py2.py3-none-any.whl (371kB)

    100% |████████████████████████████████| 372kB 273kB/s 

Collecting backports-abc>=0.4 (from tornado)

  Downloading backports_abc-0.4-py2.py3-none-any.whl

Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/site-packages (from singledispatch->tornado)

Building wheels for collected packages: tornado

  Running setup.py bdist_wheel for tornado

  Stored in directory: /root/.cache/pip/wheels/2d/e6/19/1a61a89abb78cc3e1761a5844eaa1fdc86fd41b38353df5967

Successfully built tornado

Installing collected packages: singledispatch, certifi, backports-abc, tornado

Successfully installed backports-abc-0.4 certifi-2015.9.6.2 singledispatch-3.4.0.3 tornado-4.3

[root@wode012 tools]# 

//////

////// install mysql-python

//////

[root@wode012 tools]# pip install mysql-python

Collecting mysql-python

/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: 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 MySQL-python-1.2.5.zip (108kB)

    100% |████████████████████████████████| 110kB 412kB/s 

Building wheels for collected packages: mysql-python

  Running setup.py bdist_wheel for mysql-python

  Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-yf1v45/mysql-python/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpbTaMkNpip-wheel-:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build/lib.linux-x86_64-2.7

  copying _mysql_exceptions.py -> build/lib.linux-x86_64-2.7

  creating build/lib.linux-x86_64-2.7/MySQLdb

  copying MySQLdb/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb

  copying MySQLdb/converters.py -> build/lib.linux-x86_64-2.7/MySQLdb

  copying MySQLdb/connections.py -> build/lib.linux-x86_64-2.7/MySQLdb

  copying MySQLdb/cursors.py -> build/lib.linux-x86_64-2.7/MySQLdb

  copying MySQLdb/release.py -> build/lib.linux-x86_64-2.7/MySQLdb

  copying MySQLdb/times.py -> build/lib.linux-x86_64-2.7/MySQLdb

  creating build/lib.linux-x86_64-2.7/MySQLdb/constants

  copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants

  copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants

  copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants

  copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants

  copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants

  copying MySQLdb/constants/REFRESH.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants

  copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants

  running build_ext

  building '_mysql' extension

  creating build/temp.linux-x86_64-2.7

  gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -g -m64 -fPIC -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing

  unable to execute gcc: No such file or directory

  error: command 'gcc' failed with exit status 1

  ----------------------------------------

  Failed building wheel for mysql-python

Failed to build mysql-python

Installing collected packages: mysql-python

  Running setup.py install for mysql-python

    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-yf1v45/mysql-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-OxlOGK-record/install-record.txt --single-version-externally-managed --compile:

    running install

    running build

    running build_py

    running build_ext

    building '_mysql' extension

    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -g -m64 -fPIC -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing

    unable to execute gcc: No such file or directory

    error: command 'gcc' failed with exit status 1

    ----------------------------------------

Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-yf1v45/mysql-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-OxlOGK-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-yf1v45/mysql-python

[root@wode012 tools]# 

//////

////// install dev support

//////

# yum install gcc

# yum install gcc-c++

# yum install python-devel

# yum install git

# yum install subversion

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • django-python3-mysql

    使用python3和Django搭建自己的服务器的时候使用的是sqlite数据库,一切顺利.

    py3study
  • Python paramiko模块的安装

    paramiko是Python语言编写的遵循SSH2协议,支持加密和认证方式,连接远程服务器执行命令或者上传下载文件。

    py3study
  • Django的简介

              模板语法:目的是将变量(数据库内容)如何巧妙的镶嵌到HTML页面中

    py3study
  • 美国科学院2020新晋院士名单发布!中科院曹晓风及6位华人学者入选,去年还有高福和颜宁

    美国国家科学院(National Academy of Sciences,NAS)昨晚在网上宣布了最新当选的120名院士和26名国际院士的名单,以表彰他们在原创...

    新智元
  • oracle和mysql批量合并对比

    orm框架采用mybatis,本博客介绍一下批量合并merge用oracle和mysql来做的区别,

    用户1208223
  • Traefik 2 使用指南,愉悦的开发体验

    本文使用「署名 4.0 国际 (CC BY 4.0)」许可协议,欢迎转载、或重新修改使用,但需要注明来源。 署名 4.0 国际 (CC BY 4.0)

    soulteary
  • Linux压缩和解压zip格式的文件

    zip 格式文件是 Windows 和 Linux 系统都通用的压缩文件类型,属于几种主流的压缩格式(zip、rar等)之一,是一种相当简单的分别压缩每个文件的...

    技术训练营
  • Traefik 2 使用指南,愉悦的开发体验

    本文使用「署名 4.0 国际 (CC BY 4.0)」许可协议,欢迎转载、或重新修改使用,但需要注明来源。 署名 4.0 国际 (CC BY 4.0)

    soulteary
  • 实战 | 客户细分:如何找到最有价值的TA?

    本文由CDA作者库成员麻赛原创,并授权发布 原文来自公众号麻大湿讲数据(ID:madashi_data)。 ? 客户是最宝贵的资源,没有客户资源就没有生存和发展...

    CDA数据分析师
  • 「推荐」从openresty谈到rust

    本文转载自知乎:https://zhuanlan.zhihu.com/p/87922545?utm_source=wechat_session&utm_medi...

    MikeLoveRust

扫码关注云+社区

领取腾讯云代金券