The first is to install python2.7
Download your python, according to your own needs to choose, here I choose is python2.7, this best can download the source code, and then compile the installation. The process is simple, you can refer to my previous article. Here the main introduction easy_install
, with Easy_install to manage the expansion of Python is very convenient, where these extensions can be installed through the source code, but with Easy_insall will be faster. Here is the value of the installation on Linux, more installation methods can refer to this link, inside yo detailed instructions. If the command does not work properly, you can make a few modifications, take some unimportant, and try again.
Installing Easy_install
You can use this command to install Easy_install. It should be explained that the last Python should be replaced with the Python executable you installed in the previous step, because if you have a python in your system, then the python in the environment variable is your system, probably 2.6, so your easy_ Install extensions are installed for 2.6 python, so probably not for your purposes, so you should use 2.7 python, which is the python you installed yourself.
Install extensions
After installation, in the original Python bin directory, there should be 2 more files, one is Easy_install and easy_install-2.7, we can use Easy_install easy to install those extensions, the last installation of the extension should be able to quickly fix As follows:
wget https://bootstrap.pypa.io/ez_setup.py/your/path/python/bin/python ez_setup.py
/your/path/python/bin/easy_install pymongo/your/path/python/bin/easy_install mysql-python /your/path/python
Python Package Manager Easy_install