one. Install Python
1) Check install or not
Enter the command on the Mac Terminal: which python to see the path to Python
2) When not installed, manually download the installation package address: https://www.python.org/downloads/
Select Download Mac OS X 64-bit/32-bit Installer installation
Two. Install Twisted
1) Check install or not
Enter command in Mac Terminal:$ python
Python 2.7.10 (V2.7.10:15C95B7D81DC, May 23 2015, 09:33:12)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on Darwin
Type "Help", "copyright", "credits" or "license" for more information.
>>> Import Twisted
2) When not installed, manually download the installation package address: Https://twistedmatrix.com/trac/wiki/Downloads
Select Source Tarball
- Twisted 15.2.1 ? tarball Download
3) After extracting, click setup.py > Right button "Open with" > select "Build Applet"
4) in the Mac Terminal input command:$python setup.py Install
Until prompted
Using/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages
Finished processing dependencies for twisted==15.2.1
The installation was successful.
three. Install zope.interface if need it.
1): Https://pypi.python.org/pypi/zope.interface/4.1.2#downloads
2) installation process with twisted. No repetition.
Install Python+twisted+mysqldb+nginx+uwsgi on Mac