- Why are you pretending to be easy_install?
Normally, we would like to install a third-party expansion pack for Python, we must download the package, unzip it to a directory, then command line or terminal to open the directory, and then execute
Python setup.py Install
To install them.
Is this very cumbersome? If we direct the command line to execute
Easy_install Twisted
The latest version of the twisted packaging up, is not very cool?
So Easy_install is just for us. It's easier to install a third-party expansion pack
- How to install Easy_install?
First download the Easy_install installation package:
Http://pypi.python.org/pypi/setuptools
Download the corresponding version, Windows directly run EXE installed on it
Linux can be run directly above
SH Setuptools-0.6c9-py2.4.egg
Once the installation is complete, Easy_install will be automatically copied to the Bin directory, which is our path path, so we can run the Easy_install command directly in the terminal.
Easy_install Twisted
Test it and see if it works.
- Common problems
When installing the package, whether manually installed or Easy_install, if the prompt error: Python.h file is not found, it means that we installed Python is not a development version, the following solutions in Ubuntu are as follows:
sudo apt-get install Python-2.7-dev
Install the version of Dev that corresponds to Python.
Installation and use of Python-easy_install