"Python" Prepare for Python env

Source: Internet
Author: User
Tags switches

//////

Install PIP

//////

[email protected] 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 the 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

[Email protected] tools]#


//////

Upgrade Pip

//////

[[Email protected] tools]# pip install--upgrade pip

Requirement already UP-TO-DATE:PIP In/usr/lib/python2.7/site-packages

[Email protected] tools]#


//////

Install tornado

//////

[[Email protected] 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-&G T;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

[Email protected] tools]#


//////

Install Mysql-python

//////

[[Email protected] 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

[Email protected] tools]#


//////

Install dev Support

//////

# yum Install gcc

# yum Install gcc-c++

# yum Install Python-devel

# yum Install git

# Yum Install Subversion






"Python" Prepare for Python env

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.