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