我的编程空间,编程开发者的网络收藏夹
学习永远不晚

【python】prepare for

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

【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






免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

【python】prepare for

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

【python】prepare for

//////////// install pip//////[root@wode012 tools]# python get-pip.py /tmp/tmp4BEPxg/pip.zip/pip/_vendor/requests/packag
2023-01-31

ORA-15506: cannot prepare instance string for replay ORACLE 报错 故障修复 远程处理

文档解释ORA-15506: cannot prepare instance string for replayCause: Given instance encountered unexpected errors while
ORA-15506: cannot prepare instance string for replay ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-27545: Fail to prepare buffer for remote update ORACLE 报错 故障修复 远程处理

文档解释ORA-27545: Fail to prepare buffer for remote updateCause: This is an operating system/cluster interconnect
ORA-27545: Fail to prepare buffer for remote update ORACLE 报错 故障修复 远程处理
2023-11-05

ORA-31493: could not prepare session for LogMiner session ORACLE 报错 故障修复 远程处理

文档解释ORA-31493: could not prepare session for LogMiner sessionCause: Failure during prepare session for a LogMiner
ORA-31493: could not prepare session for LogMiner session ORACLE 报错 故障修复 远程处理
2023-11-04

MySQL PREPARE语句怎么使用

在MySQL中,PREPARE语句用于动态地创建和执行SQL语句。它的一般语法如下:PREPARE statement_name FROM sql_statement;其中,statement_name是要定义的准备语句的名称,sql_st
2023-09-15

php中的prepare怎么用

这篇文章给大家介绍php中的prepare怎么用,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。在php中“PDO::prepare”表示准备要执行的语句,并返回语句对象,其使用语法如“public PDO::prepa
2023-06-28

php prepare的用法是什么

在php中“PDO::prepare”表示准备要执行的语句,并返回语句对象,其使用语法如“public PDO::prepare(string $statement, array $driver_options = array())”。
2019-11-22

php prepare的用法是什么

PHP中的prepare()函数用于预处理SQL语句,提高查询性能并防止SQL注入。它需要一个SQL语句和一个包含驱动器特定选项(可选)的数组作为参数。该函数返回一个PDOStatement对象,代表预处理的语句。优点包括性能优化、SQL注入防护和可重用性。使用prepare()涉及创建PDO对象、调用prepare()并绑定参数、执行语句和处理结果等步骤。注意使用占位符、绑定参数并谨慎使用预处理语句。
php prepare的用法是什么
2024-04-25

ORA-41017: Session prepare failed for session number string, serial number string ORACLE 报错 故障修复 远程处

文档解释ORA-41017: Session prepare failed for session number string, serial number stringCause: A migration attempt was
ORA-41017: Session prepare failed for session number string, serial number string ORACLE 报错 故障修复 远程处
2023-11-05

mysql中prepare怎么传出参数

在MySQL中,准备语句(Prepare Statement)用于预编译 SQL 语句,可以提高查询的性能并防止 SQL 注入攻击。但是,MySQL的准备语句并不直接支持传出参数(Out Parameter)。如果你需要在准备语句中使用传
mysql中prepare怎么传出参数
2024-04-09

mysql prepare的作用是什么

今天小编给大家分享一下mysql prepare的作用是什么的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解一下吧。
2023-04-21

Strategy for Python

关卡地址:http://www.pythonchallenge.com/pc/def/ocr.html(点击前往)这一关卡信息同样非常精简,只有短短的一句话,然后其他信息都没有什么用,真心用心良苦(能说这个作者操蛋吗)。不多说了,话语中提到
2023-01-31

Python For Delphi---

先上相关资源的下载吧:python4delphi:主页:http://code.google.com/p/python4delphi/下载:svn checkout http://python4delphi.googlecode.com/s
2023-01-31

存储过程中的MySQL PREPARE语句

MySQL PREPARE语句用于在存储过程中动态准备和执行SQL语句。它的语法如下:```PREPARE statement_name FROM sql_statement;```其中,`statement_name`是一个用户定义的标识
2023-09-27

Mysql prepare预处理如何使用

在MySQL中,预处理语句可以用来执行动态SQL语句,可以有效地防止SQL注入攻击,并提高SQL语句的执行效率。使用预处理语句的步骤如下:1. 创建预处理语句:使用`PREPARE`语句创建一个预处理语句。语法如下:```sqlPREPAR
2023-08-09

编程热搜

  • Python 学习之路 - Python
    一、安装Python34Windows在Python官网(https://www.python.org/downloads/)下载安装包并安装。Python的默认安装路径是:C:\Python34配置环境变量:【右键计算机】--》【属性】-
    Python 学习之路 - Python
  • chatgpt的中文全称是什么
    chatgpt的中文全称是生成型预训练变换模型。ChatGPT是什么ChatGPT是美国人工智能研究实验室OpenAI开发的一种全新聊天机器人模型,它能够通过学习和理解人类的语言来进行对话,还能根据聊天的上下文进行互动,并协助人类完成一系列
    chatgpt的中文全称是什么
  • C/C++中extern函数使用详解
  • C/C++可变参数的使用
    可变参数的使用方法远远不止以下几种,不过在C,C++中使用可变参数时要小心,在使用printf()等函数时传入的参数个数一定不能比前面的格式化字符串中的’%’符号个数少,否则会产生访问越界,运气不好的话还会导致程序崩溃
    C/C++可变参数的使用
  • css样式文件该放在哪里
  • php中数组下标必须是连续的吗
  • Python 3 教程
    Python 3 教程 Python 的 3.0 版本,常被称为 Python 3000,或简称 Py3k。相对于 Python 的早期版本,这是一个较大的升级。为了不带入过多的累赘,Python 3.0 在设计的时候没有考虑向下兼容。 Python
    Python 3 教程
  • Python pip包管理
    一、前言    在Python中, 安装第三方模块是通过 setuptools 这个工具完成的。 Python有两个封装了 setuptools的包管理工具: easy_install  和  pip , 目前官方推荐使用 pip。    
    Python pip包管理
  • ubuntu如何重新编译内核
  • 改善Java代码之慎用java动态编译

目录