Zero-Infrastructure Server SETUP document

Source: Internet
Author: User

Basic Python Environment Construction

Environment variable settings in window

 

After setting, you can easily use the python command line and the script tool in the python path.

1. Python installation path

2. Path of the Python script Tool

These two paths are added to the PATH environment variable.

 

 

 

Install pywin32

Pywin32 is required for access to system APIs in windows. You can download the corresponding pywin32 installation package based on your Python version. : Http://sourceforge.net/projects/pywin32/files/pywin32/

 

Python version upgrade in Linux

Download the corresponding Python version package. Take python2.4 to upgrade python2.6 as an example, and then run./configuremake & make install under the package.

Next, change the default Python version mV/usr/bin/Python/usr/bin/python. Bak ln-S/usr/local/bin/python2.6/usr/bin/python.

This may cause Yum to be unavailable. Modify the/usr/bin/Yum configuration Vim/usr/bin/Yum to change the first line of python to python2.4. In this way, you can use python2.6.

 

Install easy_install

Use Yum install Python-setuptools in Linux for installation.

In Windows, you can download the corresponding installation package at https://pypi.python.org/pypi/setuptools/0.6c11.

 

Install C Compiler

Python has many third-party libraries for C extension, so the C/C ++ compiler is required.

Install GCC with Yum install GCC gcc-C ++-y in Linux

In Windows, we usually use vs or mingw.

Http://berdy.iteye.com/blog/1106590.

 

 

Firefly Installation

Third-party library dependency:

Twisted, Zope. Interface, Python-memcached, dbutils, mysqldb, affinity

Install third-party libraries:

Easy_install environment)

Easy_install Python-memcached

Easy_install dbutils

Easy_install Zope. Interface

Easy_install affinity

Easy_install environment)

 

Install firefly

Jump to the firefly directory,

Python setup. py build

Python setup. py install

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.